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
This commit is contained in:
Peter Eisentraut 2017-06-13 08:52:48 -04:00
parent 17082a88ea
commit 4955109d22

View File

@ -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",