Sample Header Ad - 728x90

How can I use an environment variable in a Postgres function?

13 votes
2 answers
19211 views
Let's say I have a windows user environment variable SOME_STRING. Is it possible to use its value in a PL/pgSQL function? If not, do I need to use an untrusted language (like PL/pythonu) or can I use a trusted one? I am on PG 9.2
Asked by Neil McGuigan (8653 rep)
Oct 25, 2013, 06:08 PM
Last activity: Jul 5, 2022, 12:30 PM