| 1 |
-- |
| 2 |
-- Test start_proc execution |
| 3 |
-- |
| 4 |
|
| 5 |
SET pltcl.start_proc = 'no_such_function'; |
| 6 |
|
| 7 |
select tcl_int4add(1, 2); |
| 8 |
select tcl_int4add(1, 2); |
| 9 |
|
| 10 |
create function tcl_initialize() returns void as |
| 11 |
$$ elog NOTICE "in tcl_initialize" $$ language pltcl SECURITY DEFINER; |
| 12 |
|
| 13 |
SET pltcl.start_proc = 'public.tcl_initialize'; |
| 14 |
|
| 15 |
select tcl_int4add(1, 2); -- fail |
| 16 |
|
| 17 |
create or replace function tcl_initialize() returns void as |
| 18 |
$$ elog NOTICE "in tcl_initialize" $$ language pltcl; |
| 19 |
|
| 20 |
select tcl_int4add(1, 2); |
| 21 |
select tcl_int4add(1, 2); |