*** pgsql/src/include/utils/rel.h 2010/02/04 00:09:14 1.121 --- pgsql/src/include/utils/rel.h 2010/02/07 20:48:13 1.122 *************** *** 7,13 **** * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.120 2010/01/17 22:56:23 tgl Exp $ * *------------------------------------------------------------------------- */ --- 7,13 ---- * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * ! * $PostgreSQL: pgsql/src/include/utils/rel.h,v 1.121 2010/02/04 00:09:14 tgl Exp $ * *------------------------------------------------------------------------- */ *************** typedef struct StdRdOptions *** 340,345 **** --- 340,355 ---- ((relation)->rd_rel->relnamespace) /* + * RelationIsMapped + * True if the relation uses the relfilenode map. + * + * NB: this is only meaningful for relkinds that have storage, else it + * will misleadingly say "true". + */ + #define RelationIsMapped(relation) \ + ((relation)->rd_rel->relfilenode == InvalidOid) + + /* * RelationOpenSmgr * Open the relation at the smgr level, if not already done. */