pgsql is being a pain