Skip to content

Commit 6afbaaa

Browse files
committed
Change log level as noted in documentation.
If there are two concurrent pg_repack commands are run on the same table, the one starting later fails with error message: Another pg_repack command may be running on the table. Please try again. The document says this is shown as ERROR, but actualy is WARNING.
1 parent f4703be commit 6afbaaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/pg_repack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ static bool advisory_lock(PGconn *conn, const char *relid)
15791579
elog(ERROR, "%s", PQerrorMessage(connection));
15801580
}
15811581
else if (strcmp(getstr(res, 0, 0), "t") != 0) {
1582-
elog(WARNING, "Another pg_repack command may be running on the table. Please try again later.");
1582+
elog(ERROR, "Another pg_repack command may be running on the table. Please try again later.");
15831583
}
15841584
else {
15851585
ret = true;

0 commit comments

Comments
 (0)