Search Postgresql Archives

Re: Getting linux $USER (and perhaps other env vars) in PL/pg-sql?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 07, 2009 at 12:08:45PM -0700, Gauthier, Dave wrote:
> 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?

Not really, what if they were connecting over the network from a device
that doesn't have "users"?

Maybe the "current_user" variable[1] helps?

-- 
  Sam  http://samason.me.uk/
 
 [1] http://www.postgresql.org/docs/current/static/functions-info.html

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux