Fix test running under Postgres.