8
8
*
9
9
*
10
10
* 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 $
12
12
*
13
13
*
14
14
* INTERFACE ROUTINES
@@ -794,8 +794,8 @@ relation_close(Relation relation, LOCKMODE lockmode)
794
794
* heap_open - open a heap relation by relation OID
795
795
*
796
796
* This is essentially relation_open plus check that the relation
797
- * is not an index or special relation . (The caller should also check
798
- * that it's not a view before assuming it has storage.)
797
+ * is not an index nor a composite type . (The caller should also
798
+ * check that it's not a view before assuming it has storage.)
799
799
* ----------------
800
800
*/
801
801
Relation
@@ -810,11 +810,6 @@ heap_open(Oid relationId, LOCKMODE lockmode)
810
810
(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
811
811
errmsg ("\"%s\" is an index" ,
812
812
RelationGetRelationName (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 ))));
818
813
else if (r -> rd_rel -> relkind == RELKIND_COMPOSITE_TYPE )
819
814
ereport (ERROR ,
820
815
(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
@@ -845,11 +840,6 @@ heap_openrv(const RangeVar *relation, LOCKMODE lockmode)
845
840
(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
846
841
errmsg ("\"%s\" is an index" ,
847
842
RelationGetRelationName (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 ))));
853
843
else if (r -> rd_rel -> relkind == RELKIND_COMPOSITE_TYPE )
854
844
ereport (ERROR ,
855
845
(errcode (ERRCODE_WRONG_OBJECT_TYPE ),
0 commit comments