Fix another check for PostgreSQL