Skip to content

Commit 4955109

Browse files
committed
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
1 parent 17082a8 commit 4955109

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13073,6 +13073,9 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
1307313073
appendPQExpBufferStr(q, "libc");
1307413074
else if (collprovider[0] == 'i')
1307513075
appendPQExpBufferStr(q, "icu");
13076+
else if (collprovider[0] == 'd')
13077+
/* to allow dumping pg_catalog; not accepted on input */
13078+
appendPQExpBufferStr(q, "default");
1307613079
else
1307713080
exit_horribly(NULL,
1307813081
"unrecognized collation provider: %s\n",

0 commit comments

Comments
 (0)