Stupid pg syntax