summaryrefslogtreecommitdiff
path: root/contrib/test_decoding/test_decoding.c
diff options
context:
space:
mode:
authorDavid Rowley2019-07-04 01:01:13 +0000
committerDavid Rowley2019-07-04 01:01:13 +0000
commit8abc13a88938ef473b8a486186f1b96630450728 (patch)
tree111864d4f940154a6fd64fd50bc528d396ccde30 /contrib/test_decoding/test_decoding.c
parent5683b34956b4e8da9dccadc2e3a53b86104ebb33 (diff)
Use appendStringInfoString and appendPQExpBufferStr where possible
This changes various places where appendPQExpBuffer was used in places where it was possible to use appendPQExpBufferStr, and likewise for appendStringInfo and appendStringInfoString. This is really just a stylistic improvement, but there are also small performance gains to be had from doing this. Discussion: http://postgr.es/m/CAKJS1f9P=M-3ULmPvr8iCno8yvfDViHibJjpriHU8+SXUgeZ=w@mail.gmail.com
Diffstat (limited to 'contrib/test_decoding/test_decoding.c')
-rw-r--r--contrib/test_decoding/test_decoding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/test_decoding/test_decoding.c b/contrib/test_decoding/test_decoding.c
index 33955a478ed..a0ded67b9aa 100644
--- a/contrib/test_decoding/test_decoding.c
+++ b/contrib/test_decoding/test_decoding.c
@@ -518,9 +518,9 @@ pg_decode_truncate(LogicalDecodingContext *ctx, ReorderBufferTXN *txn,
|| change->data.truncate.cascade)
{
if (change->data.truncate.restart_seqs)
- appendStringInfo(ctx->out, " restart_seqs");
+ appendStringInfoString(ctx->out, " restart_seqs");
if (change->data.truncate.cascade)
- appendStringInfo(ctx->out, " cascade");
+ appendStringInfoString(ctx->out, " cascade");
}
else
appendStringInfoString(ctx->out, " (no-flags)");