Re: 2 forks for md5? - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: 2 forks for md5?
Date
Msg-id 4332208C.7010507@dunslane.net
Whole thread Raw
In response to 2 forks for md5?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: 2 forks for md5?
List pgsql-hackers

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


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: feature proposal ...
Next
From: Bruce Momjian
Date:
Subject: Re: logging blemishes