diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/catalog/pg_type.h | 13 | ||||
-rw-r--r-- | src/include/parser/parse_relation.h | 3 | ||||
-rw-r--r-- | src/include/utils/lsyscache.h | 3 |
3 files changed, 10 insertions, 9 deletions
diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index 6bc4a2a92ae..3d026acc083 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: pg_type.h,v 1.126 2002/08/04 19:48:10 momjian Exp $ + * $Id: pg_type.h,v 1.127 2002/08/05 02:30:50 tgl Exp $ * * NOTES * the genbki.sh script reads this file and generates .bki @@ -60,10 +60,10 @@ CATALOG(pg_type) BOOTSTRAP bool typbyval; /* - * typtype is 'b' for a basic type, 'c' for a catalog type (ie a - * class), or 'p' for a pseudo type. If typtype is 'c', typrelid is the - * OID of the class' entry in pg_class. (Why do we need an entry in - * pg_type for classes, anyway?) + * typtype is 'b' for a basic type, 'c' for a complex type (ie a + * table's rowtype), 'd' for a domain type, or 'p' for a pseudo type. + * + * If typtype is 'c', typrelid is the OID of the class' entry in pg_class. */ char typtype; @@ -75,7 +75,8 @@ CATALOG(pg_type) BOOTSTRAP bool typisdefined; char typdelim; /* delimiter for arrays of this type */ - Oid typrelid; /* 0 if not a class type */ + + Oid typrelid; /* 0 if not a complex type */ /* * If typelem is not 0 then it identifies another row in pg_type. The diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index 7abfd047865..38729a81a64 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_relation.h,v 1.36 2002/08/04 19:48:11 momjian Exp $ + * $Id: parse_relation.h,v 1.37 2002/08/05 02:30:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -61,6 +61,5 @@ extern List *expandRelAttrs(ParseState *pstate, RangeTblEntry *rte); extern int attnameAttNum(Relation rd, const char *attname, bool sysColOK); extern Name attnumAttName(Relation rd, int attid); extern Oid attnumTypeId(Relation rd, int attid); -extern char typeid_get_typtype(Oid typeid); #endif /* PARSE_RELATION_H */ diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index ab06031b2c6..c03e1a241e2 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: lsyscache.h,v 1.56 2002/08/02 18:15:09 tgl Exp $ + * $Id: lsyscache.h,v 1.57 2002/08/05 02:30:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -51,6 +51,7 @@ extern bool get_typbyval(Oid typid); extern void get_typlenbyval(Oid typid, int16 *typlen, bool *typbyval); extern char get_typstorage(Oid typid); extern Node *get_typdefault(Oid typid); +extern char get_typtype(Oid typid); extern Oid getBaseType(Oid typid); extern Oid getBaseTypeTypeMod(Oid typid, int32 *typmod); extern int32 get_typavgwidth(Oid typid, int32 typmod); |