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.
This commit is contained in:
bwtakacy 2015-04-27 15:48:38 +09:00
parent f4703be524
commit 6afbaaa012

View File

@ -1579,7 +1579,7 @@ static bool advisory_lock(PGconn *conn, const char *relid)
elog(ERROR, "%s", PQerrorMessage(connection));
}
else if (strcmp(getstr(res, 0, 0), "t") != 0) {
elog(WARNING, "Another pg_repack command may be running on the table. Please try again later.");
elog(ERROR, "Another pg_repack command may be running on the table. Please try again later.");
}
else {
ret = true;