Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4041808

Browse files
committed
Fix bogus syntax for CREATE PUBLICATION commands emitted by pg_dump.
Original coding was careless about where to insert commas. Masahiko Sawada Discussion: https://postgr.es/m/3427593a-61aa-b17e-64ef-383b7742d6d9@enterprisedb.com
1 parent 12590c5 commit 4041808

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,20 +3491,20 @@ dumpPublication(Archive *fout, PublicationInfo *pubinfo)
34913491
first = false;
34923492
}
34933493

3494-
if (!first)
3495-
appendPQExpBufferStr(query, ", ");
3496-
34973494
if (pubinfo->pubupdate)
34983495
{
3496+
if (!first)
3497+
appendPQExpBufferStr(query, ", ");
3498+
34993499
appendPQExpBufferStr(query, "update");
35003500
first = false;
35013501
}
35023502

3503-
if (!first)
3504-
appendPQExpBufferStr(query, ", ");
3505-
35063503
if (pubinfo->pubdelete)
35073504
{
3505+
if (!first)
3506+
appendPQExpBufferStr(query, ", ");
3507+
35083508
appendPQExpBufferStr(query, "delete");
35093509
first = false;
35103510
}

0 commit comments

Comments
 (0)