From: Peter Eisentraut Date: Tue, 13 Jun 2017 12:52:48 +0000 (-0400) Subject: pg_dump: Allow dumping default collation X-Git-Tag: REL_10_BETA2~170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4955109d2281eacec6af8aee203382ac3991f1cf;p=thirdparty%2Fpostgresql.git 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 --- diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index 0b1574d401f..1bec66ebbb6 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",