fixed pgsql