Fix returning check for Postgres.