Re: How to determine if a user exists..

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dominic J(dot) Eidson" <sauron(at)the-infinite(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: How to determine if a user exists..
Date: 2001-04-23 14:02:27
Message-ID: 12594.988034547@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dominic J. Eidson" <sauron(at)the-infinite(dot)org> writes:
> I am trying to add another authentication mechanism to PostgreSQL... And,
> in doing that, I need to verify the existance of an user within PG. Short
> of hacking together code from verify_password(), is there any way to check
> if a user exists in postgresql?

If you're trying to do this from the postmaster, I think the only way is
to look at $PGDATA/global/pg_pwd, which is a flat-file version of
pg_shadow.

You'd be well advised to study the existing verification mechanisms in
src/backend/libpq/.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-04-23 14:10:33 Re: RFC: planner statistics in 7.2
Previous Message Tom Lane 2001-04-23 13:48:48 Re: Will something bad happen if I put index on xmin ?