Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4041808

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp