Re: How to determine if a user exists..

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to determine if a user exists..
Дата
Msg-id 12594.988034547@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How to determine if a user exists..  ("Dominic J. Eidson" <sauron@the-infinite.org>)
Список pgsql-hackers
"Dominic J. Eidson" <sauron@the-infinite.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: Replication through WAL
Следующее
От: Adam Rose
Дата:
Сообщение: row name length