From 07f9682de43ce53fcd6d86744f610cacfabc60bb Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 5 Aug 2002 02:30:50 +0000 Subject: 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. --- src/backend/utils/cache/lsyscache.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/backend/utils/cache/lsyscache.c') 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 ---------- */ -- cgit v1.2.3