Debian Codegraph @

src/pl/tcl/expected/pltcl_start_proc.out

raw
1 --
2 -- Test start_proc execution
3 --
4 SET pltcl.start_proc = 'no_such_function';
5 select tcl_int4add(1, 2);
6 ERROR: function no_such_function() does not exist
7 CONTEXT: processing pltcl.start_proc parameter
8 select tcl_int4add(1, 2);
9 ERROR: function no_such_function() does not exist
10 CONTEXT: processing pltcl.start_proc parameter
11 create function tcl_initialize() returns void as
12 $$ elog NOTICE "in tcl_initialize" $$ language pltcl SECURITY DEFINER;
13 SET pltcl.start_proc = 'public.tcl_initialize';
14 select tcl_int4add(1, 2); -- fail
15 ERROR: function "public.tcl_initialize" must not be SECURITY DEFINER
16 CONTEXT: processing pltcl.start_proc parameter
17 create or replace function tcl_initialize() returns void as
18 $$ elog NOTICE "in tcl_initialize" $$ language pltcl;
19 select tcl_int4add(1, 2);
20 NOTICE: in tcl_initialize
21 tcl_int4add
22 -------------
23 3
24 (1 row)
25
26 select tcl_int4add(1, 2);
27 tcl_int4add
28 -------------
29 3
30 (1 row)
31