From 4955109d2281eacec6af8aee203382ac3991f1cf Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 13 Jun 2017 08:52:48 -0400 Subject: [PATCH] pg_dump: Allow dumping default collation This will not work on restore, but it will allow dumping out pg_catalog for research and documentation. Reported-by: Neil Anderson Bug: #14701 --- src/bin/pg_dump/pg_dump.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 0b1574d401..1bec66ebbb 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -13073,6 +13073,9 @@ dumpCollation(Archive *fout, CollInfo *collinfo) appendPQExpBufferStr(q, "libc"); else if (collprovider[0] == 'i') appendPQExpBufferStr(q, "icu"); + else if (collprovider[0] == 'd') + /* to allow dumping pg_catalog; not accepted on input */ + appendPQExpBufferStr(q, "default"); else exit_horribly(NULL, "unrecognized collation provider: %s\n",