diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-19 23:40:56 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-19 23:40:56 +0000 |
commit | da395b56cd0844f73232961fe0823f4c224bc721 (patch) | |
tree | bb7ef806205c2f5bd123d8ef0975655bebaaa5ff /src/include/utils/lsyscache.h | |
parent | 4a0c3a6142698c7f2f99230679dc80cd9d7e5e4e (diff) |
Tweak heap.c to refuse attempts to create table columns of standalone
composite types. Add a couple more lsyscache.c routines to support this,
and make use of them in some other places that were doing lookups the
hard way.
Diffstat (limited to 'src/include/utils/lsyscache.h')
-rw-r--r-- | src/include/utils/lsyscache.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index 5dee7bc0cbb..ff88d30e73d 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.63 2002/09/18 21:35:25 tgl Exp $ + * $Id: lsyscache.h,v 1.64 2002/09/19 23:40:56 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -45,6 +45,7 @@ extern Oid get_system_catalog_relid(const char *catname); extern char *get_rel_name(Oid relid); extern Oid get_rel_namespace(Oid relid); extern Oid get_rel_type_id(Oid relid); +extern char get_rel_relkind(Oid relid); extern bool get_typisdefined(Oid typid); extern int16 get_typlen(Oid typid); extern bool get_typbyval(Oid typid); @@ -54,6 +55,7 @@ extern void get_typlenbyvalalign(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 get_typ_typrelid(Oid typid); extern void getTypeInputInfo(Oid type, Oid *typInput, Oid *typElem); extern bool getTypeOutputInfo(Oid type, Oid *typOutput, Oid *typElem, bool *typIsVarlena); |