1 /*-------------------------------------------------------------------------
4 * rmgr descriptor routines for commands/sequence.c
6 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/backend/access/rmgrdesc/seqdesc.c
13 *-------------------------------------------------------------------------
17 #include "commands/sequence.h"
21 seq_desc(StringInfo buf
, XLogReaderState
*record
)
23 char *rec
= XLogRecGetData(record
);
24 uint8 info
= XLogRecGetInfo(record
) & ~XLR_INFO_MASK
;
25 xl_seq_rec
*xlrec
= (xl_seq_rec
*) rec
;
27 if (info
== XLOG_SEQ_LOG
)
28 appendStringInfo(buf
, "rel %u/%u/%u",
29 xlrec
->locator
.spcOid
, xlrec
->locator
.dbOid
,
30 xlrec
->locator
.relNumber
);
34 seq_identify(uint8 info
)
36 const char *id
= NULL
;
38 switch (info
& ~XLR_INFO_MASK
)