I need to run a shell script in PostgreSQL and get output in a variable.
PostgreSQL Version - 9.3
I need to run a shell script in PostgreSQL and get output in a variable.
PostgreSQL Version - 9.3
To run a shell script inside the database, you'd have to install the PL/sh procedural language.
I am not sure what you mean by a “variable” inside a database, but a function written in PL/sh can be used just like any other function.