Some fail-safe pdo_pgsql adjustments