diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-05-15 11:48:39 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-05-15 11:48:39 -0400 |
commit | 4041808b5b70433206b37e1305c807c325b06713 (patch) | |
tree | b80c48bc533bccd5b7a880b3e8eec088adae7983 /src | |
parent | 12590c5d33d013e55995c0c0ea6c70262a6d13b3 (diff) | |
download | postgresql-4041808b5b70433206b37e1305c807c325b06713.tar.gz postgresql-4041808b5b70433206b37e1305c807c325b06713.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_dump.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index b6794d06ded..f7b28408b5f 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -3491,20 +3491,20 @@ dumpPublication(Archive *fout, PublicationInfo *pubinfo) first = false; } - if (!first) - appendPQExpBufferStr(query, ", "); - if (pubinfo->pubupdate) { + if (!first) + appendPQExpBufferStr(query, ", "); + appendPQExpBufferStr(query, "update"); first = false; } - if (!first) - appendPQExpBufferStr(query, ", "); - if (pubinfo->pubdelete) { + if (!first) + appendPQExpBufferStr(query, ", "); + appendPQExpBufferStr(query, "delete"); first = false; } |