diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-20 20:36:57 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-20 20:36:57 +0000 |
commit | 5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670 (patch) | |
tree | 8a0e76a6742884477e5bb50639e9a7ab9ba42872 /src/backend/utils/cache | |
parent | 99198ac6b8d2003949a02a148f4483e2f95e7dd4 (diff) | |
download | postgresql-5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670.tar.gz postgresql-5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670.zip |
Revise handling of oldstyle/newstyle functions per recent discussions
in pghackers list. Support for oldstyle internal functions is gone
(no longer needed, since conversion is complete) and pg_language entry
'internal' now implies newstyle call convention. pg_language entry
'newC' is gone; both old and newstyle dynamically loaded C functions
are now called language 'C'. A newstyle function must be identified
by an associated info routine. See src/backend/utils/fmgr/README.
Diffstat (limited to 'src/backend/utils/cache')
-rw-r--r-- | src/backend/utils/cache/lsyscache.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/backend/utils/cache/lsyscache.c b/src/backend/utils/cache/lsyscache.c index e07445837a5..24b2cbada95 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.47 2000/11/16 22:30:33 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/cache/lsyscache.c,v 1.48 2000/11/20 20:36:49 tgl Exp $ * * NOTES * Eventually, the index information should go through here, too. @@ -731,6 +731,27 @@ get_typalign(Oid typid) #endif +char +get_typstorage(Oid typid) +{ + HeapTuple tp; + + tp = SearchSysCache(TYPEOID, + ObjectIdGetDatum(typid), + 0, 0, 0); + if (HeapTupleIsValid(tp)) + { + Form_pg_type typtup = (Form_pg_type) GETSTRUCT(tp); + char result; + + result = typtup->typstorage; + ReleaseSysCache(tp); + return result; + } + else + return 'p'; +} + /* * get_typdefault * |