mirror of
https://github.com/postgres/postgres.git
synced 2026-04-24 15:47:01 -04:00
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:
parent
17082a88ea
commit
4955109d22
1 changed files with 3 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue