Jarmo Paavilainen writes:
> Ive located where the pg_shadow compare happens, but If I give a wrong
> username it will not even get that far. "pg_pwd" is never created so I
> assume its not used. So how in h*** does pg do it? And where? (which
> function?, file? mechanism?).
Of interest would be
src/backend/libpq/auth.c: checkPassword()
password.c
crypt.c
The compare always happens against pg_pwd, which gets created everytime
you create or alter a user with password.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/