Re: BUG #3504: Some listening sessions never return from writing, problems ensue - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3504: Some listening sessions never return from writing, problems ensue
Date
Msg-id 3733.1186439776@sss.pgh.pa.us
Whole thread Raw
In response to BUG #3504: Some listening sessions never return from writing, problems ensue  ("Peter Koczan" <pjkoczan@gmail.com>)
Responses Re: BUG #3504: Some listening sessions never return from writing, problems ensue
List pgsql-bugs
"Peter Koczan" <pjkoczan@gmail.com> writes:
> So, it looks like the app polls for async notifies every second. Hopefully
> you can glean some insight from that.

My guess is that some condition causes that to stop happening.

One way to monitor this from outside is to use strace to watch the app.
According to the above you should see a recv() attempt on the libpq
socket every second.  I suspect that you won't see any more once the app
gets into the state where the recv-q is backing up.  Looking at what
happens around the time of the last recv() might give some clues.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: RE : RE : BUG #3519: Postgres takes the wrong query plan resulting in performance issues
Next
From: Gregory Stark
Date:
Subject: Re: RE : RE : BUG #3519: Postgres takes the wrong query plan resulting in performance issues