Re: How to determine if a user exists..

Dominic J. Eidson <sauron@the-infinite.org>

From: "Dominic J. Eidson" <sauron@the-infinite.org>
To: pgsql-hackers@postgresql.org
Date: 2001-04-23T13:43:40Z
Lists: pgsql-hackers
On Mon, 23 Apr 2001, Joel Burton wrote:

> pg_user holds users
> 
> (passwords in pg_shadow)

I doubt the -hackers people would let me add SPI_* stuff into libpq, just
to retrieve whether a user exists or not.. My first thought was to check
the existance of users against $PGDATA/pg_pwd... One question I'd have
there, is whether pg_pwd always exists (or, can be relied upon existing.)?



-- 
Dominic J. Eidson
                                        "Baruk Khazad! Khazad ai-menu!" - Gimli
-------------------------------------------------------------------------------
http://www.the-infinite.org/              http://www.the-infinite.org/~dominic/