From 1577b46b7c81e490cf5c8f0e90d0e5d0c09b5414 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 28 Nov 2012 12:35:01 -0300 Subject: Split out rmgr rm_desc functions into their own files This is necessary (but not sufficient) to have them compilable outside of a backend environment. --- src/backend/commands/tablespace.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/backend/commands/tablespace.c') diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 08899aeecec..5081d8411ec 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -1424,25 +1424,3 @@ tblspc_redo(XLogRecPtr lsn, XLogRecord *record) else elog(PANIC, "tblspc_redo: unknown op code %u", info); } - -void -tblspc_desc(StringInfo buf, uint8 xl_info, char *rec) -{ - uint8 info = xl_info & ~XLR_INFO_MASK; - - if (info == XLOG_TBLSPC_CREATE) - { - xl_tblspc_create_rec *xlrec = (xl_tblspc_create_rec *) rec; - - appendStringInfo(buf, "create tablespace: %u \"%s\"", - xlrec->ts_id, xlrec->ts_path); - } - else if (info == XLOG_TBLSPC_DROP) - { - xl_tblspc_drop_rec *xlrec = (xl_tblspc_drop_rec *) rec; - - appendStringInfo(buf, "drop tablespace: %u", xlrec->ts_id); - } - else - appendStringInfo(buf, "UNKNOWN"); -} -- cgit v1.2.3