Emmanuel, Strange, I just stumbled upon this bug yesterday and it worked with postgres database (which must be more tested option with gitlab as that is what gitlab.com uses). Make sure you restart everything after you comment out. But yes, this is quite annoying bug...
Regards, Andrius
signature.asc
Description: This is a digitally signed message part.