Header And Logo

PostgreSQL
| The world's most advanced open source database.

Functions

seqdesc.c File Reference

#include "postgres.h"
#include "commands/sequence.h"
Include dependency graph for seqdesc.c:

Go to the source code of this file.

Functions

void seq_desc (StringInfo buf, uint8 xl_info, char *rec)

Function Documentation

void seq_desc ( StringInfo  buf,
uint8  xl_info,
char *  rec 
)

Definition at line 21 of file seqdesc.c.

References appendStringInfo(), RelFileNode::dbNode, xl_seq_rec::node, RelFileNode::relNode, RelFileNode::spcNode, and XLOG_SEQ_LOG.

{
    uint8       info = xl_info & ~XLR_INFO_MASK;
    xl_seq_rec *xlrec = (xl_seq_rec *) rec;

    if (info == XLOG_SEQ_LOG)
        appendStringInfo(buf, "log: ");
    else
    {
        appendStringInfo(buf, "UNKNOWN");
        return;
    }

    appendStringInfo(buf, "rel %u/%u/%u",
               xlrec->node.spcNode, xlrec->node.dbNode, xlrec->node.relNode);
}