pg_repack.git / summary / log / commit / refs

commit    2335a4da828bb30d75443df814110dc700da9502
Author:   Daniele Varrazzo <daniele.varrazzo@gmail.com>
Date:     Fri Nov 23 01:39:20 2012 +0000

    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; } [parent: 700a1a6c48df]