projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17082a8
)
pg_dump: Allow dumping default collation
author
Peter Eisentraut
<
[email protected]
>
Tue, 13 Jun 2017 12:52:48 +0000
(08:52 -0400)
committer
Peter Eisentraut
<
[email protected]
>
Tue, 13 Jun 2017 12:52:48 +0000
(08:52 -0400)
This will not work on restore, but it will allow dumping out pg_catalog
for research and documentation.
Reported-by: Neil Anderson <
[email protected]
>
Bug: #14701
src/bin/pg_dump/pg_dump.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/pg_dump/pg_dump.c
b/src/bin/pg_dump/pg_dump.c
index 0b1574d401ff6e9b49482ab175fbd97df4ba1403..1bec66ebbb60e7c8cbc9014b3809488594af4e05 100644
(file)
--- 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",