basic fixes for ext/pgsql