Re: [COMMITTERS] pgsql: Use asynchronous connect API in libpqwalreceiver
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Petr Jelinek <petr.jelinek@2ndquadrant.com>,
pgsql-hackers@postgresql.org
Date: 2017-03-17T15:07:46Z
Lists: pgsql-hackers
Andrew Dunstan <andrew.dunstan@2ndquadrant.com> writes: > I have confirmed on jacana Petr's observation that adding a timeout to > the WaitLatchOrSocket cures the problem. Does anyone have a theory as to why that cures the problem? What length of timeout is being suggested here? Would a long timeout perhaps create a performance issue? That is, I'm wondering if the wait actually sleeps to the end of the timeout in the problem case(s). regards, tom lane
Commits
-
Fix WaitEventSetWait() to handle write-ready waits properly on Windows.
- f7819baa618c 10.0 landed
- 8e6333e1cb77 9.6.3 landed
-
Rewrite async-connection loop in libpqwalreceiver.c, once again.
- b5dd50f2c0ad 10.0 landed
-
Use asynchronous connect API in libpqwalreceiver
- 1e8a85009447 10.0 cited