From 2335a4da828bb30d75443df814110dc700da9502 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Fri, 23 Nov 2012 01:39:20 +0000 Subject: [PATCH] Dropped redundant check for missing schema If the schema is missing we have already stopped trying to check the version numbers above. --- bin/pg_repack.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/bin/pg_repack.c b/bin/pg_repack.c index ffd74b6..f50a4ab 100644 --- a/bin/pg_repack.c +++ b/bin/pg_repack.c @@ -552,19 +552,9 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize) /* on error skip the database */ if (PQresultStatus(res) != PGRES_TUPLES_OK) { - if (sqlstate_equals(res, SQLSTATE_INVALID_SCHEMA_NAME)) - { - /* Schema repack does not exist. Skip the database. */ - if (errbuf) - snprintf(errbuf, errsize, - "%s is not installed in the database", PROGRAM_NAME); - } - else - { - /* Return the error message otherwise */ - if (errbuf) - snprintf(errbuf, errsize, "%s", PQerrorMessage(connection)); - } + /* Return the error message otherwise */ + if (errbuf) + snprintf(errbuf, errsize, "%s", PQerrorMessage(connection)); goto cleanup; }