basic fixes for ext/pdo_pgsql