diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2017-06-13 08:52:48 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2017-06-13 08:52:48 -0400 |
commit | 4955109d2281eacec6af8aee203382ac3991f1cf (patch) | |
tree | 4bed4b259ac3b30ce8564977464de395851be12a | |
parent | 17082a88eadfca79b50c04c5a78a2c38ee4f5d9c (diff) | |
download | postgresql-4955109d2281eacec6af8aee203382ac3991f1cf.tar.gz postgresql-4955109d2281eacec6af8aee203382ac3991f1cf.zip |
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 <neil.t.anderson@gmail.com>
Bug: #14701
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 3 |
1 files changed, 3 insertions, 0 deletions
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", |