pgsql fix attempt #1