Fix buildfarm failure introduced by commit e65dbc9927.
authorAmit Kapila <akapila@postgresql.org>
Thu, 23 Jan 2025 12:17:15 +0000 (17:47 +0530)
committerAmit Kapila <akapila@postgresql.org>
Thu, 23 Jan 2025 12:17:15 +0000 (17:47 +0530)
The patch had incorrectly specified the default value for
publish_generated_columns during the query formation in pg_dump.

Author: Vignesh C <vignesh21@gmail.com>
Discussion: https://postgr.es/m/CAA4eK1KfZYTD8Hpi9TD1KaB8rNUBR9baUvTxa5wYyZDGbEaa6g@mail.gmail.com

src/bin/pg_dump/pg_dump.c

index 9b840fc400a18b63bd54f52958718c4e23e7e89b..af857f00c7c969deca3be0af01cd70442d476977 100644 (file)
@@ -4318,7 +4318,7 @@ getPublications(Archive *fout)
    if (fout->remoteVersion >= 180000)
        appendPQExpBufferStr(query, "p.pubgencols_type ");
    else
-       appendPQExpBufferStr(query, CppAsString2(PUBLISH_GENCOLS_NONE) " AS pubgencols_type ");
+       appendPQExpBuffer(query, "'%c' AS pubgencols_type ", PUBLISH_GENCOLS_NONE);
 
    appendPQExpBufferStr(query, "FROM pg_publication p");