mirror of
https://github.com/postgres/postgres.git
synced 2025-08-18 12:22:09 +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:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user