From: | "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com> |
---|---|
To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Need linux uid in pg-psql |
Date: | 2011-08-19 14:01:33 |
Message-ID: | 482E80323A35A54498B8B70FF2B8798004CFB01627@azsmsx504.amr.corp.intel.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Is there a way to get the linux idsid of a user, even for a remote network connection?
If not, is there a way to capture this somehow when the original connection is made and maybe stuff it in a temp table or something using whatever means (a trigger-like mechanism? ) ? Is there a script/function that gets run whenever a connection is made, something I might have access to, in which I could piggy-back something like this? What I'm talking about is basically grabbing and storing $USER for me to read later on with a stored proc.
I could write a pg-perlu to get this, but I suspect it won't give me the original user when there's a remote connect.
Thanks for any suggestions !
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-08-19 14:04:00 | Re: Getting value of bind variables |
Previous Message | Adrian Klaver | 2011-08-19 14:01:16 | Re: Getting value of bind variables |