88 *
99 *
1010 * IDENTIFICATION
11- * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.212 2006/05/10 23:18:39 tgl Exp $
11+ * $PostgreSQL: pgsql/src/backend/access/heap/heapam.c,v 1.213 2006/05/28 02:27:08 alvherre Exp $
1212 *
1313 *
1414 * INTERFACE ROUTINES
@@ -794,8 +794,8 @@ relation_close(Relation relation, LOCKMODE lockmode)
794794 *heap_open - open a heap relation by relation OID
795795 *
796796 *This is essentially relation_open plus check that the relation
797- *is not an indexor special relation . (The caller should also check
798- *that it's not a view before assuming it has storage.)
797+ *is not an indexnor a composite type . (The caller should also
798+ *check that it's not a view before assuming it has storage.)
799799 * ----------------
800800 */
801801Relation
@@ -810,11 +810,6 @@ heap_open(Oid relationId, LOCKMODE lockmode)
810810(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
811811errmsg ("\"%s\" is an index" ,
812812RelationGetRelationName (r ))));
813- else if (r -> rd_rel -> relkind == RELKIND_SPECIAL )
814- ereport (ERROR ,
815- (errcode (ERRCODE_WRONG_OBJECT_TYPE ),
816- errmsg ("\"%s\" is a special relation" ,
817- RelationGetRelationName (r ))));
818813else if (r -> rd_rel -> relkind == RELKIND_COMPOSITE_TYPE )
819814ereport (ERROR ,
820815(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
@@ -845,11 +840,6 @@ heap_openrv(const RangeVar *relation, LOCKMODE lockmode)
845840(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
846841errmsg ("\"%s\" is an index" ,
847842RelationGetRelationName (r ))));
848- else if (r -> rd_rel -> relkind == RELKIND_SPECIAL )
849- ereport (ERROR ,
850- (errcode (ERRCODE_WRONG_OBJECT_TYPE ),
851- errmsg ("\"%s\" is a special relation" ,
852- RelationGetRelationName (r ))));
853843else if (r -> rd_rel -> relkind == RELKIND_COMPOSITE_TYPE )
854844ereport (ERROR ,
855845(errcode (ERRCODE_WRONG_OBJECT_TYPE ),