| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | "Swathi S" <ss(dot)postgres(at)gmail(dot)com> |
| Cc: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: User login |
| Date: | 2008-11-20 16:31:50 |
| Message-ID: | 2912.1227198710@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin |
"Swathi S" <ss(dot)postgres(at)gmail(dot)com> writes:
> How do we find which user logged in from the OS level in postgres.
> For eg: If user "a" logged in from the OS level and logged into postgres
> psql as user "b" .........how do we find the login details?
You don't --- there's no way to find that out from the server side.
What you might consider doing is tying the OS and postgres user
identities together by using "ident" authorization --- but that's
not real secure unless all the connections are local.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Treat | 2008-11-20 19:37:06 | Re: Is it safe to reset relfrozenxid without using vacuum? |
| Previous Message | Swathi S | 2008-11-20 12:12:53 | User login |