Skip to content

Commit 49e542a

Browse files
committed
Improve error message when repack against non-existing table.
Previously, pg_repack shows "ERROR: ERROR: relation foo does not exist" when specify non-existing table. Though the first ERROR is from pg_repack and the second ERROR is from PostgreSQL server, some users might think that pg_repack shows error level twice wrongly.
1 parent 3920a5e commit 49e542a

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
@@ -341,7 +341,7 @@ main(int argc, char *argv[])
341341
{
342342
if (!repack_one_database(orderby, errbuf, sizeof(errbuf)))
343343
ereport(ERROR,
344-
(errcode(ERROR), errmsg("%s", errbuf)));
344+
(errcode(ERROR), errmsg("pg_repack fails by PostgreSQL server error: %s", errbuf)));
345345
}
346346
}
347347

0 commit comments

Comments
 (0)