diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-31 22:46:33 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-03-31 22:46:33 +0000 |
commit | 47888fe84227aaf3decffc7204554bdec54d2b29 (patch) | |
tree | 73703aa272d2b9899626002190f0fbd3b1e579fb /src/backend/utils/cache/lsyscache.c | |
parent | fb13881f423193a8342e0fe098f581e511b09d67 (diff) | |
download | postgresql-47888fe84227aaf3decffc7204554bdec54d2b29.tar.gz postgresql-47888fe84227aaf3decffc7204554bdec54d2b29.zip |
First phase of OUT-parameters project. We can now define and use SQL
functions with OUT parameters. The various PLs still need work, as does
pg_dump. Rudimentary docs and regression tests included.
Diffstat (limited to 'src/backend/utils/cache/lsyscache.c')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index 0b40a20b251..3abbf65fa48 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 - * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.121 2005/03/29 00:17:11 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/cache/lsyscache.c,v 1.122 2005/03/31 22:46:14 tgl Exp $ * * NOTES * Eventually, the index information should go through here, too. @@ -1544,42 +1544,6 @@ get_typtype(Oid typid) } /* - * get_type_func_class - * - * Given the type OID, obtain its TYPEFUNC classification. - * - * This is intended to centralize a bunch of formerly ad-hoc code for - * classifying types. The categories used here are useful for deciding - * how to handle functions returning the datatype. - */ -TypeFuncClass -get_type_func_class(Oid typid) -{ - switch (get_typtype(typid)) - { - case 'c': - return TYPEFUNC_COMPOSITE; - case 'b': - case 'd': - return TYPEFUNC_SCALAR; - case 'p': - if (typid == RECORDOID) - return TYPEFUNC_RECORD; - /* - * We treat VOID and CSTRING as legitimate scalar datatypes, - * mostly for the convenience of the JDBC driver (which wants - * to be able to do "SELECT * FROM foo()" for all legitimately - * user-callable functions). - */ - if (typid == VOIDOID || typid == CSTRINGOID) - return TYPEFUNC_SCALAR; - return TYPEFUNC_OTHER; - } - /* shouldn't get here, probably */ - return TYPEFUNC_OTHER; -} - -/* * get_typ_typrelid * * Given the type OID, get the typrelid (InvalidOid if not a complex |