Andrew Dunstan wrote:
>
> I am puzzled about this. The strace output below is from CVS tip and
> shows the postmaster and children during a single (local) connection
> when the auth method is md5. What we see is 2 calls to clone() (that's
> Linux for fork(), more or less). When the auth method is set to trust
> or ident, there is only one clone(), which is what I expected.
>
> Have I missed something, or is there a bug here? Do I need to get the
> debugger out?
>
>
Confusion fixed (thanks, Tom). psql (via libpq) tries twice, if not
given a password to begin with (via .pgpass or psql's -W).
Ugly but at least not incomprehensible.
cheers
andrew