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: Petr Jelinek <petr@2ndquadrant.com>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: Noah Misch <noah@leadboat.com>
Cc: Augustine, Jobin <jobin.augustine@openscg.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Replication to Postgres 10 on Windows is broken
Date: Sun, 06 Aug 2017 18:04:49 -0400
Message-ID: <16046.1502057089@sss.pgh.pa.us> (raw)
In-Reply-To: <20170806215521.d6fq4esvx7s5ejka@alap3.anarazel.de>
References: <CAHBggj8g2T+ZDcACZ2FmzX9CTxkWjKBsHd6NkYB4i9Ojf6K1Fw@mail.gmail.com>
	<20170806062634.GA3180536@rfd.leadboat.com>
	<3819.1502032677@sss.pgh.pa.us>
	<20170806155037.GD3179882@rfd.leadboat.com>
	<6525.1502036947@sss.pgh.pa.us>
	<20170806171436.ve646fu4bpagdrc2@alap3.anarazel.de>
	<3826.1502040882@sss.pgh.pa.us>
	<20170806174822.puc4jq46rqltrtwq@alap3.anarazel.de>
	<20170806200742.sz6yshtq62ayrpa4@alap3.anarazel.de>
	<20170806215521.d6fq4esvx7s5ejka@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@anarazel.de> writes:
> Here's a prototype patch implementing what Tom outlined.

This bit is flat wrong:

-		int			io_flag;
+		int			io_flag = WL_POSTMASTER_DEATH | WL_LATCH_SET;

io_flag has to be *just* the I/O condition, because we use it in a test
after the WaitLatchOrSocket call.

> Anybody have an opinion about adding ifs for WL_SOCKET_CONNECTED to
> !win32 implementations rather than redefining it to WL_SOCKET_WRITEABLE?

I fear it would complicate matters greatly, because you'd have to figure
out which of the two flags to signal back after detecting socket writable.
I think defining it as equal to WL_SOCKET_WRITEABLE is fine.

			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: <16046.1502057089@sss.pgh.pa.us>
Permalink:  ../16046.1502057089@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16046.1502057089@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, petr@2ndquadrant.com, peter_e@gmx.net, noah@leadboat.com, jobin.augustine@openscg.com
  Subject: Re: Replication to Postgres 10 on Windows is broken
  In-Reply-To: <16046.1502057089@sss.pgh.pa.us>
  References: <CAHBggj8g2T+ZDcACZ2FmzX9CTxkWjKBsHd6NkYB4i9Ojf6K1Fw@mail.gmail.com> <20170806062634.GA3180536@rfd.leadboat.com> <3819.1502032677@sss.pgh.pa.us> <20170806155037.GD3179882@rfd.leadboat.com> <6525.1502036947@sss.pgh.pa.us> <20170806171436.ve646fu4bpagdrc2@alap3.anarazel.de> <3826.1502040882@sss.pgh.pa.us> <20170806174822.puc4jq46rqltrtwq@alap3.anarazel.de> <20170806200742.sz6yshtq62ayrpa4@alap3.anarazel.de> <20170806215521.d6fq4esvx7s5ejka@alap3.anarazel.de> <16046.1502057089@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