]> granicus.if.org Git - postgresql/commitdiff
Fix typo in pg_dump's support for dumping collations from pre-v10 servers.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 May 2017 19:37:06 +0000 (15:37 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 26 May 2017 19:37:06 +0000 (15:37 -0400)
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

index 9da9b9e96207bad5fe2a7bf896624c5b7a9c371b..9941111cda06444b7f6207d0357b417d8be893b8 100644 (file)
@@ -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 "