From cacbdd78106526d7c4f11f90b538f96ba8696fb0 Mon Sep 17 00:00:00 2001 From: Robert Haas Date: Thu, 31 Oct 2013 10:55:59 -0400 Subject: Use appendStringInfoString instead of appendStringInfo where possible. This shaves a few cycles, and generally seems like good programming practice. David Rowley --- contrib/tablefunc/tablefunc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tablefunc/tablefunc.c') diff --git a/contrib/tablefunc/tablefunc.c b/contrib/tablefunc/tablefunc.c index c2d13e0f487..348ac5d8a86 100644 --- a/contrib/tablefunc/tablefunc.c +++ b/contrib/tablefunc/tablefunc.c @@ -1340,7 +1340,7 @@ build_tuplestore_recursively(char *key_fld, for (i = 0; i < proc; i++) { /* initialize branch for this pass */ - appendStringInfo(&branchstr, "%s", branch); + appendStringInfoString(&branchstr, branch); appendStringInfo(&chk_branchstr, "%s%s%s", branch_delim, branch, branch_delim); /* get the next sql result tuple */ -- cgit v1.2.3