From 6afbaaa01214eeaa26be0897865b6276ba1e6ce5 Mon Sep 17 00:00:00 2001 From: bwtakacy Date: Mon, 27 Apr 2015 15:48:38 +0900 Subject: [PATCH] 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. --- bin/pg_repack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pg_repack.c b/bin/pg_repack.c index d8b2962..0458d67 100644 --- a/bin/pg_repack.c +++ b/bin/pg_repack.c @@ -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;