00001 /*------------------------------------------------------------------------- 00002 * 00003 * seqdesc.c 00004 * rmgr descriptor routines for commands/sequence.c 00005 * 00006 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00007 * Portions Copyright (c) 1994, Regents of the University of California 00008 * 00009 * 00010 * IDENTIFICATION 00011 * src/backend/access/rmgrdesc/seqdesc.c 00012 * 00013 *------------------------------------------------------------------------- 00014 */ 00015 #include "postgres.h" 00016 00017 #include "commands/sequence.h" 00018 00019 00020 void 00021 seq_desc(StringInfo buf, uint8 xl_info, char *rec) 00022 { 00023 uint8 info = xl_info & ~XLR_INFO_MASK; 00024 xl_seq_rec *xlrec = (xl_seq_rec *) rec; 00025 00026 if (info == XLOG_SEQ_LOG) 00027 appendStringInfo(buf, "log: "); 00028 else 00029 { 00030 appendStringInfo(buf, "UNKNOWN"); 00031 return; 00032 } 00033 00034 appendStringInfo(buf, "rel %u/%u/%u", 00035 xlrec->node.spcNode, xlrec->node.dbNode, xlrec->node.relNode); 00036 }