Re: [COMMITTERS] pgsql: Use asynchronous connect API in libpqwalreceiver

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)com>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>, Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: Use asynchronous connect API in libpqwalreceiver
Date: 2017-03-17 15:07:46
Message-ID: 10458.1489763266@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Andrew Dunstan <andrew(dot)dunstan(at)2ndquadrant(dot)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

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Petr Jelinek 2017-03-17 15:54:03 Re: [COMMITTERS] pgsql: Use asynchronous connect API in libpqwalreceiver
Previous Message Alvaro Herrera 2017-03-17 15:06:07 Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring to objects

Browse pgsql-hackers by date

  From Date Subject
Next Message Giuseppe Broccolo 2017-03-17 15:16:23 Re: QGIS Seem To Bypass PostgreSQL/PostGIS User Privileges/Permissions
Previous Message Alvaro Herrera 2017-03-17 15:06:07 Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring to objects