Commit b9188c30 authored by Vadim B. Mikheev's avatar Vadim B. Mikheev

trigger_dynamic()->handle_load() func for loading SPI-triggers

parent c67208b3
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.8 1997/08/12 20:16:09 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.9 1997/09/01 08:06:17 vadim Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -46,6 +46,8 @@ static int pronargs_save; ...@@ -46,6 +46,8 @@ static int pronargs_save;
static func_ptr user_fn_save = (func_ptr) NULL; static func_ptr user_fn_save = (func_ptr) NULL;
static func_ptr handle_load(char *filename, char *funcname); static func_ptr handle_load(char *filename, char *funcname);
func_ptr trigger_dynamic (char *filename, char *funcname);
func_ptr func_ptr
fmgr_dynamic(Oid procedureId, int *pronargs) fmgr_dynamic(Oid procedureId, int *pronargs)
{ {
...@@ -261,3 +263,13 @@ load_file(char *filename) ...@@ -261,3 +263,13 @@ load_file(char *filename)
} }
handle_load(filename, (char *) NULL); handle_load(filename, (char *) NULL);
} }
func_ptr
trigger_dynamic (char *filename, char *funcname)
{
func_ptr trigger_fn;
trigger_fn = handle_load (filename, funcname);
return (trigger_fn);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment