mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
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
This commit is contained in:
parent
12590c5d33
commit
4041808b5b
@ -3491,20 +3491,20 @@ dumpPublication(Archive *fout, PublicationInfo *pubinfo)
|
|||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pubinfo->pubupdate)
|
||||||
|
{
|
||||||
if (!first)
|
if (!first)
|
||||||
appendPQExpBufferStr(query, ", ");
|
appendPQExpBufferStr(query, ", ");
|
||||||
|
|
||||||
if (pubinfo->pubupdate)
|
|
||||||
{
|
|
||||||
appendPQExpBufferStr(query, "update");
|
appendPQExpBufferStr(query, "update");
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (pubinfo->pubdelete)
|
||||||
|
{
|
||||||
if (!first)
|
if (!first)
|
||||||
appendPQExpBufferStr(query, ", ");
|
appendPQExpBufferStr(query, ", ");
|
||||||
|
|
||||||
if (pubinfo->pubdelete)
|
|
||||||
{
|
|
||||||
appendPQExpBufferStr(query, "delete");
|
appendPQExpBufferStr(query, "delete");
|
||||||
first = false;
|
first = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user