00001 /*------------------------------------------------------------------------- 00002 * 00003 * relmapdesc.c 00004 * rmgr descriptor routines for utils/cache/relmapper.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/relmapdesc.c 00012 * 00013 *------------------------------------------------------------------------- 00014 */ 00015 #include "postgres.h" 00016 00017 #include "utils/relmapper.h" 00018 00019 void 00020 relmap_desc(StringInfo buf, uint8 xl_info, char *rec) 00021 { 00022 uint8 info = xl_info & ~XLR_INFO_MASK; 00023 00024 if (info == XLOG_RELMAP_UPDATE) 00025 { 00026 xl_relmap_update *xlrec = (xl_relmap_update *) rec; 00027 00028 appendStringInfo(buf, "update relmap: database %u tablespace %u size %u", 00029 xlrec->dbid, xlrec->tsid, xlrec->nbytes); 00030 } 00031 else 00032 appendStringInfo(buf, "UNKNOWN"); 00033 }