Re: Bug in libpq causes local clients to hang - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Bug in libpq causes local clients to hang
Date
Msg-id 4897.1206375880@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug in libpq causes local clients to hang  ("Jeffrey Baker" <jwbaker@gmail.com>)
Responses Re: Bug in libpq causes local clients to hang
List pgsql-hackers
"Jeffrey Baker" <jwbaker@gmail.com> writes:
> On Sun, Mar 23, 2008 at 8:35 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If it works over TCP and not over Unix socket, it's a kernel bug.
>> The libpq code doesn't really know the difference after connection
>> setup.

> The same thought occurred to me, but it could also be a race condition
> which the unix socket is fast enough to trigger but the TCP socket is
> not fast enough to trigger.  I'm peeking around in the code but
> nothing jumps out yet.

Fairly hard to believe given that you're talking about communication
between two sequential processes.  Anyway I'd suggest that the first
thing to do is extract a reproducible test case.  It'd be useful
to see if it hangs on other platforms...
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Heikki Linnakangas"
Date:
Subject: Re: [GSoC] (Is it OK to choose items without % mark in theToDoList) && (is it an acceptable idea to build index on Flash Disk)
Next
From: "Brendan Jurd"
Date:
Subject: Re: [PATCHES] Show INHERIT in \du