Dropped redundant check for missing schema
If the schema is missing we have already stopped trying to check the version numbers above.
This commit is contained in:
parent
700a1a6c48
commit
2335a4da82
@ -551,20 +551,10 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize)
|
|||||||
|
|
||||||
/* on error skip the database */
|
/* on error skip the database */
|
||||||
if (PQresultStatus(res) != PGRES_TUPLES_OK)
|
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 */
|
/* Return the error message otherwise */
|
||||||
if (errbuf)
|
if (errbuf)
|
||||||
snprintf(errbuf, errsize, "%s", PQerrorMessage(connection));
|
snprintf(errbuf, errsize, "%s", PQerrorMessage(connection));
|
||||||
}
|
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user