postgresql - Error: java.lang.SecurityException: execute on /home/<user>/test.sh JAR file trying to read shell file (Pljava) -


i trying call pl/sql function calls java class , reads shell file , execute same. placed shell file in home directory.

i created jar using class , installed in postgresql.

however, when trying execute in pljava, returns following error:

error: java.lang.securityexception: execute on /home//test.sh

********** error **********

error: java.lang.securityexception: execute on /home//test.sh
sql state: xx000

how solve this?

you cannot read , execute files trusted pl/java. have use untrusted language (i.e. javau), , have create function under superuser


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -