Yet another fix for pgsql