mirror of
https://github.com/postgres/postgres.git
synced 2025-11-25 12:03:53 +03:00
Fix up some misusage of appendStringInfo() and friends
Change to appendStringInfoChar() or appendStringInfoString() where those can be used. Author: David Rowley <david.rowley@2ndquadrant.com> Reviewed-by: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
This commit is contained in:
@@ -455,7 +455,7 @@ FreePageManagerDump(FreePageManager *fpm)
|
||||
recycle = relptr_access(base, fpm->btree_recycle);
|
||||
if (recycle != NULL)
|
||||
{
|
||||
appendStringInfo(&buf, "btree recycle:");
|
||||
appendStringInfoString(&buf, "btree recycle:");
|
||||
FreePageManagerDumpSpans(fpm, recycle, 1, &buf);
|
||||
}
|
||||
|
||||
@@ -468,7 +468,7 @@ FreePageManagerDump(FreePageManager *fpm)
|
||||
continue;
|
||||
if (!dumped_any_freelist)
|
||||
{
|
||||
appendStringInfo(&buf, "freelists:\n");
|
||||
appendStringInfoString(&buf, "freelists:\n");
|
||||
dumped_any_freelist = true;
|
||||
}
|
||||
appendStringInfo(&buf, " %zu:", f + 1);
|
||||
@@ -1275,7 +1275,7 @@ FreePageManagerDumpBtree(FreePageManager *fpm, FreePageBtree *btp,
|
||||
btp->u.leaf_key[index].first_page,
|
||||
btp->u.leaf_key[index].npages);
|
||||
}
|
||||
appendStringInfo(buf, "\n");
|
||||
appendStringInfoChar(buf, '\n');
|
||||
|
||||
if (btp->hdr.magic == FREE_PAGE_INTERNAL_MAGIC)
|
||||
{
|
||||
@@ -1308,7 +1308,7 @@ FreePageManagerDumpSpans(FreePageManager *fpm, FreePageSpanLeader *span,
|
||||
span = relptr_access(base, span->next);
|
||||
}
|
||||
|
||||
appendStringInfo(buf, "\n");
|
||||
appendStringInfoChar(buf, '\n');
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user