aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-02 12:32:48 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-07-02 12:36:31 +0300
commit02ec4cd179099fc409288bb55c40fea308a51204 (patch)
tree1936e351b2dd3c0f73b25381b3f06db3dc6b1055 /contrib/postgres_fdw/postgres_fdw.c
parent00ccea9e9dcee7b4f103674d274fadc8b09075f7 (diff)
downloadpostgresql-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 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 6da01e1d6f3..e4d799cecd5 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -2738,7 +2738,7 @@ postgresImportForeignSchema(ImportForeignSchemaStmt *stmt, Oid serverOid)
}
/* Append ORDER BY at the end of query to ensure output ordering */
- appendStringInfo(&buf, " ORDER BY c.relname, a.attnum");
+ appendStringInfoString(&buf, " ORDER BY c.relname, a.attnum");
/* Fetch the data */
res = PQexec(conn, buf.data);