1 /*-------------------------------------------------------------------------
4 * rmgr descriptor routines for access/transam/clog.c
6 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
11 * src/backend/access/rmgrdesc/clogdesc.c
13 *-------------------------------------------------------------------------
17 #include "access/clog.h"
21 clog_desc(StringInfo buf, uint8 xl_info, char *rec)
23 uint8 info = xl_info & ~XLR_INFO_MASK;
25 if (info == CLOG_ZEROPAGE)
29 memcpy(&pageno, rec, sizeof(int));
30 appendStringInfo(buf, "zeropage: %d", pageno);
32 else if (info == CLOG_TRUNCATE)
36 memcpy(&pageno, rec, sizeof(int));
37 appendStringInfo(buf, "truncate before: %d", pageno);
40 appendStringInfo(buf, "UNKNOWN");