mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 13:02:55 +00:00
Remove unused static function
In v16 merge, we copied much of heap RMGR, to distinguish vanilla Postgres heap records from records generated with neon patches, with the additional CID fields. This function is only used by the HEAP_TRUNCATE records, however, which we didn't need to copy. Part of the cleanup issue #9217.
This commit is contained in:
@@ -44,27 +44,6 @@ infobits_desc(StringInfo buf, uint8 infobits, const char *keyname)
|
|||||||
appendStringInfoString(buf, "]");
|
appendStringInfoString(buf, "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
truncate_flags_desc(StringInfo buf, uint8 flags)
|
|
||||||
{
|
|
||||||
appendStringInfoString(buf, "flags: [");
|
|
||||||
|
|
||||||
if (flags & XLH_TRUNCATE_CASCADE)
|
|
||||||
appendStringInfoString(buf, "CASCADE, ");
|
|
||||||
if (flags & XLH_TRUNCATE_RESTART_SEQS)
|
|
||||||
appendStringInfoString(buf, "RESTART_SEQS, ");
|
|
||||||
|
|
||||||
if (buf->data[buf->len - 1] == ' ')
|
|
||||||
{
|
|
||||||
/* Truncate-away final unneeded ", " */
|
|
||||||
Assert(buf->data[buf->len - 2] == ',');
|
|
||||||
buf->len -= 2;
|
|
||||||
buf->data[buf->len] = '\0';
|
|
||||||
}
|
|
||||||
|
|
||||||
appendStringInfoString(buf, "]");
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
neon_rm_desc(StringInfo buf, XLogReaderState *record)
|
neon_rm_desc(StringInfo buf, XLogReaderState *record)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user