Re: Escaping from blocked send() reprised.
Noah Misch <noah@leadboat.com>
From: Noah Misch <noah@leadboat.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Heikki Linnakangas <hlinnakangas@vmware.com>,
Tom Lane <tgl@sss.pgh.pa.us>,
Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>,
robertmhaas@gmail.com, pgsql-hackers@postgresql.org
Date: 2015-01-12T00:55:33Z
Lists: pgsql-hackers
On Mon, Jan 12, 2015 at 01:45:41AM +0100, Andres Freund wrote: > On 2015-01-11 19:37:53 -0500, Noah Misch wrote: > > I recommend either (a) taking no action or (b) adding a regression test > > verifying WaitLatchOrSocket() conformance in this scenario. > > Do you have a good idea how to test b) save a C function in regress.c > that does what your test does using latches? No, that's what I had in mind. You could probably achieve it with a libpq program that lets input accumulate, but that's trickier.
Commits
-
Assert that WaitLatchOrSocket callers cannot wait only for writability.
- e42a21b9e6c9 9.2.0 cited