Re: [HACKERS] Question regarding psql or libpq

2010-12-16 Thread Tom Lane
Magnus Hagander writes: > On Thu, Dec 16, 2010 at 16:22, Tom Lane wrote: >> Two connections are not really a problem IMO, so I would not be in favor >> of kluging the API to the extent required by solution (B). > (B) could be as simple as a callback asking for it, though, couldn't > it? That see

Re: [HACKERS] Question regarding psql or libpq

2010-12-16 Thread Magnus Hagander
On Thu, Dec 16, 2010 at 16:22, Tom Lane wrote: > Tatsuo Ishii writes: >> It seems psql(or libpq) connects to PostgreSQL twice when md5 auth is >> required. Here is a strace log on my Linux machine. Is there any >> reason for this?  IMO frontend/backend protocol allows to send salt >> after receiv

Re: [HACKERS] Question regarding psql or libpq

2010-12-16 Thread Tom Lane
Tatsuo Ishii writes: > It seems psql(or libpq) connects to PostgreSQL twice when md5 auth is > required. Here is a strace log on my Linux machine. Is there any > reason for this? IMO frontend/backend protocol allows to send salt > after receiving AuthenticationMD5Password using the same socket. S

[HACKERS] Question regarding psql or libpq

2010-12-15 Thread Tatsuo Ishii
Hi, It seems psql(or libpq) connects to PostgreSQL twice when md5 auth is required. Here is a strace log on my Linux machine. Is there any reason for this? IMO frontend/backend protocol allows to send salt after receiving AuthenticationMD5Password using the same socket. So there's no reason to cl