aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2013-10-31 10:55:59 -0400
committerRobert Haas <rhaas@postgresql.org>2013-10-31 10:55:59 -0400
commitcacbdd78106526d7c4f11f90b538f96ba8696fb0 (patch)
tree68b44c07247b99a1b316c01f66ecf0f8d6e96127 /contrib/postgres_fdw/postgres_fdw.c
parent343bb134ea20d3b7286c620c15a067da79cab724 (diff)
downloadpostgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.tar.gz
postgresql-cacbdd78106526d7c4f11f90b538f96ba8696fb0.zip
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
-rw-r--r--contrib/postgres_fdw/postgres_fdw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/postgres_fdw/postgres_fdw.c b/contrib/postgres_fdw/postgres_fdw.c
index 8713eabc646..246a3a985b7 100644
--- a/contrib/postgres_fdw/postgres_fdw.c
+++ b/contrib/postgres_fdw/postgres_fdw.c
@@ -787,7 +787,7 @@ postgresGetForeignPlan(PlannerInfo *root,
root->parse->commandType == CMD_DELETE))
{
/* Relation is UPDATE/DELETE target, so use FOR UPDATE */
- appendStringInfo(&sql, " FOR UPDATE");
+ appendStringInfoString(&sql, " FOR UPDATE");
}
else
{
@@ -808,11 +808,11 @@ postgresGetForeignPlan(PlannerInfo *root,
{
case LCS_FORKEYSHARE:
case LCS_FORSHARE:
- appendStringInfo(&sql, " FOR SHARE");
+ appendStringInfoString(&sql, " FOR SHARE");
break;
case LCS_FORNOKEYUPDATE:
case LCS_FORUPDATE:
- appendStringInfo(&sql, " FOR UPDATE");
+ appendStringInfoString(&sql, " FOR UPDATE");
break;
}
}