1 -- test plperl.on_plperl_init via the shared hash
2 -- (must be done before plperl is first used)
3 -- Avoid need for custom_variable_classes = 'plperl'
5 -- testing on_plperl_init gets run, and that it can alter %_SHARED
6 SET plperl.on_plperl_init = '$_SHARED{on_init} = 42';
7 -- test the shared hash
8 create function setme(key text, val text) returns void language plperl as $$
15 create function getme(key text) returns text language plperl as $$
18 return $_SHARED{$key};
21 select setme('ourkey','ourval');
27 select getme('ourkey');
33 select getme('on_init');