mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
Use appendStringInfoString instead of appendStringInfo where possible.
This shaves a few cycles, and generally seems like good programming practice. David Rowley
This commit is contained in:
@@ -35,7 +35,7 @@ out_gistxlogPageUpdate(StringInfo buf, gistxlogPageUpdate *xlrec)
|
||||
static void
|
||||
out_gistxlogPageSplit(StringInfo buf, gistxlogPageSplit *xlrec)
|
||||
{
|
||||
appendStringInfo(buf, "page_split: ");
|
||||
appendStringInfoString(buf, "page_split: ");
|
||||
out_target(buf, xlrec->node);
|
||||
appendStringInfo(buf, "; block number %u splits to %d pages",
|
||||
xlrec->origblkno, xlrec->npage);
|
||||
@@ -49,7 +49,7 @@ gist_desc(StringInfo buf, uint8 xl_info, char *rec)
|
||||
switch (info)
|
||||
{
|
||||
case XLOG_GIST_PAGE_UPDATE:
|
||||
appendStringInfo(buf, "page_update: ");
|
||||
appendStringInfoString(buf, "page_update: ");
|
||||
out_gistxlogPageUpdate(buf, (gistxlogPageUpdate *) rec);
|
||||
break;
|
||||
case XLOG_GIST_PAGE_SPLIT:
|
||||
|
Reference in New Issue
Block a user