postgres.git / summary / log / commit / refs
commit 764cb2b596ced6aea4d83fd52ff628bdedb63316
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Fri May 26 19:37:06 2017 +0000
Fix typo in pg_dump's support for dumping collations from pre-v10 servers.
Dunno what 'p' was supposed to mean, but since neither the code below
here nor pg_collation.h think it's valid, it must be a mistake.
Per report from Thomas Kellerer.
Discussion: https://postgr.es/m/og9q8f%24oes%241%40blaine.gmane.org
src/bin/pg_dump/pg_dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 9da9b9e9620..9941111cda0 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -13039,7 +13039,7 @@ dumpCollation(Archive *fout, CollInfo *collinfo)
collinfo->dobj.catId.oid);
else
appendPQExpBuffer(query, "SELECT "
- "'p'::char AS collprovider, "
+ "'c'::char AS collprovider, "
"collcollate, "
"collctype, "
"NULL AS collversion "
[parent: 94aced8cd0e2]