summaryrefslogtreecommitdiff
path: root/src/backend/access/rmgrdesc/xlogdesc.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 /src/backend/access/rmgrdesc/xlogdesc.c
parent343bb134ea20d3b7286c620c15a067da79cab724 (diff)
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
Diffstat (limited to 'src/backend/access/rmgrdesc/xlogdesc.c')
-rw-r--r--src/backend/access/rmgrdesc/xlogdesc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/rmgrdesc/xlogdesc.c b/src/backend/access/rmgrdesc/xlogdesc.c
index 1b36f9a88a5..1d70494233e 100644
--- a/src/backend/access/rmgrdesc/xlogdesc.c
+++ b/src/backend/access/rmgrdesc/xlogdesc.c
@@ -62,7 +62,7 @@ xlog_desc(StringInfo buf, uint8 xl_info, char *rec)
}
else if (info == XLOG_NOOP)
{
- appendStringInfo(buf, "xlog no-op");
+ appendStringInfoString(buf, "xlog no-op");
}
else if (info == XLOG_NEXTOID)
{
@@ -73,7 +73,7 @@ xlog_desc(StringInfo buf, uint8 xl_info, char *rec)
}
else if (info == XLOG_SWITCH)
{
- appendStringInfo(buf, "xlog switch");
+ appendStringInfoString(buf, "xlog switch");
}
else if (info == XLOG_RESTORE_POINT)
{
@@ -141,5 +141,5 @@ xlog_desc(StringInfo buf, uint8 xl_info, char *rec)
timestamptz_to_str(xlrec.end_time));
}
else
- appendStringInfo(buf, "UNKNOWN");
+ appendStringInfoString(buf, "UNKNOWN");
}