Coverage Report

Created: 2025-07-03 06:49

/src/postgres/src/backend/access/rmgrdesc/seqdesc.c
Line
Count
Source (jump to first uncovered line)
1
/*-------------------------------------------------------------------------
2
 *
3
 * seqdesc.c
4
 *    rmgr descriptor routines for commands/sequence.c
5
 *
6
 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
7
 * Portions Copyright (c) 1994, Regents of the University of California
8
 *
9
 *
10
 * IDENTIFICATION
11
 *    src/backend/access/rmgrdesc/seqdesc.c
12
 *
13
 *-------------------------------------------------------------------------
14
 */
15
#include "postgres.h"
16
17
#include "commands/sequence.h"
18
19
20
void
21
seq_desc(StringInfo buf, XLogReaderState *record)
22
0
{
23
0
  char     *rec = XLogRecGetData(record);
24
0
  uint8   info = XLogRecGetInfo(record) & ~XLR_INFO_MASK;
25
0
  xl_seq_rec *xlrec = (xl_seq_rec *) rec;
26
27
0
  if (info == XLOG_SEQ_LOG)
28
0
    appendStringInfo(buf, "rel %u/%u/%u",
29
0
             xlrec->locator.spcOid, xlrec->locator.dbOid,
30
0
             xlrec->locator.relNumber);
31
0
}
32
33
const char *
34
seq_identify(uint8 info)
35
0
{
36
0
  const char *id = NULL;
37
38
0
  switch (info & ~XLR_INFO_MASK)
39
0
  {
40
0
    case XLOG_SEQ_LOG:
41
0
      id = "LOG";
42
0
      break;
43
0
  }
44
45
0
  return id;
46
0
}