Re: 2 forks for md5?

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 2 forks for md5?
Date: 2005-09-22 03:10:04
Message-ID: 4332208C.7010507@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2005-09-22 03:11:23 Re: logging blemishes
Previous Message Tom Lane 2005-09-22 03:09:38 Re: feature proposal ...