diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-02 12:32:48 +0300 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2015-07-02 12:36:31 +0300 |
commit | 02ec4cd179099fc409288bb55c40fea308a51204 (patch) | |
tree | 1936e351b2dd3c0f73b25381b3f06db3dc6b1055 /src/bin/pg_dump/pg_backup_archiver.c | |
parent | 00ccea9e9dcee7b4f103674d274fadc8b09075f7 (diff) | |
download | postgresql-02ec4cd179099fc409288bb55c40fea308a51204.tar.gz postgresql-02ec4cd179099fc409288bb55c40fea308a51204.zip |
Use appendStringInfoString/Char et al where appropriate.
Patch by David Rowley. Backpatch to 9.5, as some of the calls were new in
9.5, and keeping the code in sync with master makes future backpatching
easier.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_archiver.c')
-rw-r--r-- | src/bin/pg_dump/pg_backup_archiver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c index f9b564eee41..0d52babc4f1 100644 --- a/src/bin/pg_dump/pg_backup_archiver.c +++ b/src/bin/pg_dump/pg_backup_archiver.c @@ -533,7 +533,7 @@ RestoreArchive(Archive *AHX) * search for hardcoded "DROP CONSTRAINT" instead. */ if (strcmp(te->desc, "DEFAULT") == 0) - appendPQExpBuffer(ftStmt, "%s", dropStmt); + appendPQExpBufferStr(ftStmt, dropStmt); else { if (strcmp(te->desc, "CONSTRAINT") == 0 || |