pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Peter Geoghegan <pg@bowt.ie>
Cc: Noah Misch <noah@leadboat.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Augustine, Jobin <jobin.augustine@openscg.com>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Cc: PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken
Date: Sun, 13 Aug 2017 17:35:43 -0400
Message-ID: <23512.1502660143@sss.pgh.pa.us> (raw)
In-Reply-To: <20170813212222.x7xhjjtjddkvgr3s@alap3.anarazel.de>
References: <3819.1502032677@sss.pgh.pa.us>
	<20170806155037.GD3179882@rfd.leadboat.com>
	<20170808010632.GA3599653@rfd.leadboat.com>
	<c199b44a-84a0-cec9-9829-04152d77c9fb@2ndquadrant.com>
	<20170811015107.GA3623941@rfd.leadboat.com>
	<29653.1502416780@sss.pgh.pa.us>
	<20170812035622.GA3632576@rfd.leadboat.com>
	<20170813195740.77yejs2ulmqzkpoa@alap3.anarazel.de>
	<CAH2-WznYD-V4OepVGVoEmc9bYVp49JP5eFG65n81sTA_kXouLg@mail.gmail.com>
	<22063.1502657733@sss.pgh.pa.us>
	<20170813212222.x7xhjjtjddkvgr3s@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@anarazel.de> writes:
> As a measure of last restart we could add a libpq workaround that forces
> a pqSocketCheck() at the right moment, while still establishing a
> connection.  That's not good from an interruptability perspective, but
> better than blocking for the entire connection establishment.

Probably a better idea is to fix things so that can't-send-yet results
in returning PGRES_POLLING_WRITING rather than a failure.  That would
result in a busy-wait in this scenario on Windows, which is arguably
better than blocking.  It would also make this part of libpq more robust
against applications being sloppy about socket readiness checks (which,
you could argue, is exactly what libpqwalreceiver is being).  But it
would be a somewhat ticklish change because of the portability hazards,
so I'm really disinclined to do it this late in beta.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (51+ messages)  latest in thread

Message-ID: <23512.1502660143@sss.pgh.pa.us>
Permalink:  ../23512.1502660143@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23512.1502660143@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andres@anarazel.de, pg@bowt.ie, noah@leadboat.com, peter.eisentraut@2ndquadrant.com, jobin.augustine@openscg.com, pgsql-hackers@postgresql.org
  Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken
  In-Reply-To: <23512.1502660143@sss.pgh.pa.us>
  References: <3819.1502032677@sss.pgh.pa.us> <20170806155037.GD3179882@rfd.leadboat.com> <20170808010632.GA3599653@rfd.leadboat.com> <c199b44a-84a0-cec9-9829-04152d77c9fb@2ndquadrant.com> <20170811015107.GA3623941@rfd.leadboat.com> <29653.1502416780@sss.pgh.pa.us> <20170812035622.GA3632576@rfd.leadboat.com> <20170813195740.77yejs2ulmqzkpoa@alap3.anarazel.de> <CAH2-WznYD-V4OepVGVoEmc9bYVp49JP5eFG65n81sTA_kXouLg@mail.gmail.com> <22063.1502657733@sss.pgh.pa.us> <20170813212222.x7xhjjtjddkvgr3s@alap3.anarazel.de> <23512.1502660143@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox