mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
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.
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
* ENHANCEMENTS, OR MODIFICATIONS.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.29 2000/11/16 22:30:52 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.30 2000/11/20 20:36:52 tgl Exp $
|
||||
*
|
||||
**********************************************************************/
|
||||
|
||||
@@ -325,6 +325,7 @@ pltcl_init_load_unknown(void)
|
||||
* call this function for execution of
|
||||
* PL/Tcl procedures.
|
||||
**********************************************************************/
|
||||
PG_FUNCTION_INFO_V1(pltcl_call_handler);
|
||||
|
||||
/* keep non-static */
|
||||
Datum
|
||||
@@ -371,6 +372,12 @@ pltcl_call_handler(PG_FUNCTION_ARGS)
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Alternate handler for unsafe functions
|
||||
*/
|
||||
PG_FUNCTION_INFO_V1(pltclu_call_handler);
|
||||
|
||||
/* keep non-static */
|
||||
Datum
|
||||
pltclu_call_handler(PG_FUNCTION_ARGS)
|
||||
|
||||
Reference in New Issue
Block a user