aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plperl/expected/plperl_init.out
blob: a21ea0b6214b891bad9a27999a0454a90836a456 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
-- test plperl.on_plperl_init errors are fatal
-- This test tests setting on_plperl_init after loading plperl
LOAD 'plperl';
SET SESSION plperl.on_plperl_init = ' system("/nonesuch") ';
SHOW plperl.on_plperl_init;
 plperl.on_plperl_init 
-----------------------
  system("/nonesuch") 
(1 row)

DO $$ warn 42 $$ language plperl;
ERROR:  'system' trapped by operation mask at line 2.
CONTEXT:  while executing plperl.on_plperl_init
PL/Perl anonymous code block