mirror of
https://github.com/postgres/postgres.git
synced 2025-11-13 16:22:44 +03:00
Replace some appendStringInfo* calls with more appropriate variants
Author: David Rowley <dgrowleyml@gmail.com>
This commit is contained in:
@@ -29,7 +29,7 @@ smgr_desc(StringInfo buf, XLogReaderState *record)
|
||||
xl_smgr_create *xlrec = (xl_smgr_create *) rec;
|
||||
char *path = relpathperm(xlrec->rnode, xlrec->forkNum);
|
||||
|
||||
appendStringInfo(buf, "%s", path);
|
||||
appendStringInfoString(buf, path);
|
||||
pfree(path);
|
||||
}
|
||||
else if (info == XLOG_SMGR_TRUNCATE)
|
||||
|
||||
@@ -75,7 +75,7 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
|
||||
{
|
||||
xl_restore_point *xlrec = (xl_restore_point *) rec;
|
||||
|
||||
appendStringInfo(buf, "%s", xlrec->rp_name);
|
||||
appendStringInfoString(buf, xlrec->rp_name);
|
||||
}
|
||||
else if (info == XLOG_FPI || info == XLOG_FPI_FOR_HINT)
|
||||
{
|
||||
@@ -125,7 +125,7 @@ xlog_desc(StringInfo buf, XLogReaderState *record)
|
||||
bool fpw;
|
||||
|
||||
memcpy(&fpw, rec, sizeof(bool));
|
||||
appendStringInfo(buf, "%s", fpw ? "true" : "false");
|
||||
appendStringInfoString(buf, fpw ? "true" : "false");
|
||||
}
|
||||
else if (info == XLOG_END_OF_RECOVERY)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user