aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/lsyscache.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-08-05 02:30:50 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-08-05 02:30:50 +0000
commit07f9682de43ce53fcd6d86744f610cacfabc60bb (patch)
tree2415db60be54912154c9c8f8834fb94f33fa5bca /src/backend/utils/cache/lsyscache.c
parentac1a3dcf24e182a1cc9a136246b7f18a8a64bbd5 (diff)
downloadpostgresql-07f9682de43ce53fcd6d86744f610cacfabc60bb.tar.gz
postgresql-07f9682de43ce53fcd6d86744f610cacfabc60bb.zip
Preliminary code review for anonymous-composite-types patch: fix breakage
of functions returning domain types, update documentation for typtype, move get_typtype to lsyscache.c (actually, resurrect the old version), add defense against creating pseudo-typed table columns, fix some bogus list-parsing in grammar. Issues remain with respect to alias handling and type checking; Joe is on those.
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
-rw-r--r--src/backend/utils/cache/lsyscache.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c
index 9b5b4cd6f13..4c2838e7af7 100644
--- a/src/backend/utils/cache/lsyscache.c
+++ b/src/backend/utils/cache/lsyscache.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.77 2002/08/02 18:15:08 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.78 2002/08/05 02:30:50 tgl Exp $
*
* NOTES
* Eventually, the index information should go through here, too.
@@ -1142,11 +1142,9 @@ get_typavgwidth(Oid typid, int32 typmod)
/*
* get_typtype
*
- * Given the type OID, find if it is a basic type, a named relation
- * or the generic type 'relation'.
+ * Given the type OID, find if it is a basic type, a complex type, etc.
* It returns the null char if the cache lookup fails...
*/
-#ifdef NOT_USED
char
get_typtype(Oid typid)
{
@@ -1167,7 +1165,7 @@ get_typtype(Oid typid)
else
return '\0';
}
-#endif
+
/* ---------- STATISTICS CACHE ---------- */