Commit 4955109d authored by Peter Eisentraut's avatar Peter Eisentraut

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: default avatarNeil Anderson <neil.t.anderson@gmail.com>
Bug: #14701
parent 17082a88
...@@ -13073,6 +13073,9 @@ dumpCollation(Archive *fout, CollInfo *collinfo) ...@@ -13073,6 +13073,9 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
appendPQExpBufferStr(q, "libc"); appendPQExpBufferStr(q, "libc");
else if (collprovider[0] == 'i') else if (collprovider[0] == 'i')
appendPQExpBufferStr(q, "icu"); appendPQExpBufferStr(q, "icu");
else if (collprovider[0] == 'd')
/* to allow dumping pg_catalog; not accepted on input */
appendPQExpBufferStr(q, "default");
else else
exit_horribly(NULL, exit_horribly(NULL,
"unrecognized collation provider: %s\n", "unrecognized collation provider: %s\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment