Skip to content

Commit 2335a4d

Browse files
committed
Dropped redundant check for missing schema
If the schema is missing we have already stopped trying to check the version numbers above.
1 parent 700a1a6 commit 2335a4d

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

bin/pg_repack.c

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -552,19 +552,9 @@ repack_one_database(const char *orderby, char *errbuf, size_t errsize)
552552
/* on error skip the database */
553553
if (PQresultStatus(res) != PGRES_TUPLES_OK)
554554
{
555-
if (sqlstate_equals(res, SQLSTATE_INVALID_SCHEMA_NAME))
556-
{
557-
/* Schema repack does not exist. Skip the database. */
558-
if (errbuf)
559-
snprintf(errbuf, errsize,
560-
"%s is not installed in the database", PROGRAM_NAME);
561-
}
562-
else
563-
{
564-
/* Return the error message otherwise */
565-
if (errbuf)
566-
snprintf(errbuf, errsize, "%s", PQerrorMessage(connection));
567-
}
555+
/* Return the error message otherwise */
556+
if (errbuf)
557+
snprintf(errbuf, errsize, "%s", PQerrorMessage(connection));
568558
goto cleanup;
569559
}
570560

0 commit comments

Comments
 (0)