diff options
| author | Tom Lane | 2000-11-20 20:36:57 +0000 |
|---|---|---|
| committer | Tom Lane | 2000-11-20 20:36:57 +0000 |
| commit | 5bb2300b59b74cdc7c8e3f0bf3c8d31c27657670 (patch) | |
| tree | 8a0e76a6742884477e5bb50639e9a7ab9ba42872 /src/include/utils | |
| parent | 99198ac6b8d2003949a02a148f4483e2f95e7dd4 (diff) | |
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/include/utils')
| -rw-r--r-- | src/include/utils/fmgrtab.h | 4 | ||||
| -rw-r--r-- | src/include/utils/lsyscache.h | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/include/utils/fmgrtab.h b/src/include/utils/fmgrtab.h index e6cfe519650..9d46aeae694 100644 --- a/src/include/utils/fmgrtab.h +++ b/src/include/utils/fmgrtab.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: fmgrtab.h,v 1.13 2000/05/28 17:56:20 tgl Exp $ + * $Id: fmgrtab.h,v 1.14 2000/11/20 20:36:51 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -28,7 +28,7 @@ typedef struct const char *funcName; /* C name of the function */ short nargs; /* 0..FUNC_MAX_ARGS, or -1 if variable count */ bool strict; /* T if function is "strict" */ - bool oldstyle; /* T if function uses old fmgr interface */ + bool retset; /* T if function returns a set */ PGFunction func; /* pointer to compiled function */ } FmgrBuiltin; diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index f8547baa884..903e09aaf9c 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: lsyscache.h,v 1.27 2000/11/16 22:30:49 tgl Exp $ + * $Id: lsyscache.h,v 1.28 2000/11/20 20:36:51 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -39,6 +39,9 @@ extern char *get_rel_name(Oid relid); extern int16 get_typlen(Oid typid); extern bool get_typbyval(Oid typid); extern void get_typlenbyval(Oid typid, int16 *typlen, bool *typbyval); +extern char get_typstorage(Oid typid); extern Datum get_typdefault(Oid typid); +#define TypeIsToastable(typid) (get_typstorage(typid) != 'p') + #endif /* LSYSCACHE_H */ |
