Getting linux $USER (and perhaps other env vars) in PL/pg-sql? - Mailing list pgsql-general

From Gauthier, Dave
Subject Getting linux $USER (and perhaps other env vars) in PL/pg-sql?
Date
Msg-id 482E80323A35A54498B8B70FF2B8798004156B82D3@azsmsx504.amr.corp.intel.com
Whole thread Raw
Responses Re: Getting linux $USER (and perhaps other env vars) in PL/pg-sql?
List pgsql-general

Hi:

 

Running 8.3.4 on Linux.

 

From inside a stored procedure, is there a way to capture the linux user (environment var = $USER) that is attached to the DB?  

 

A simplistic (though meaningless) example would be echo $USER from something like “select get_linux_user()”.

 

Thanks

-dave

pgsql-general by date:

Previous
From: "Bill Bartlett"
Date:
Subject: Re: psql and Emacs on Windows
Next
From: Sam Mason
Date:
Subject: Re: Getting linux $USER (and perhaps other env vars) in PL/pg-sql?