From: Tom Lane <tgl@sss.pgh.pa.us>
To: Swathi S <ss.postgres@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: User login
Date: Thu, 20 Nov 2008 11:31:50 -0500
Message-ID: <2912.1227198710@sss.pgh.pa.us> (raw)
In-Reply-To: <6c1264780811200412o4875f489v6d2a435f85326447@mail.gmail.com>
References: <6c1264780811200412o4875f489v6d2a435f85326447@mail.gmail.com>
"Swathi S" <ss.postgres@gmail.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, ss.postgres@gmail.com
Subject: Re: User login
In-Reply-To: <2912.1227198710@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox