Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deTk5-00024w-2d for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Aug 2017 22:09:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1deTk4-0002S8-Id for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Aug 2017 22:09:48 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deTfT-00014l-Js for pgsql-bugs@postgresql.org; Sun, 06 Aug 2017 22:05:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1deTfQ-0001Cx-Ol for pgsql-bugs@postgresql.org; Sun, 06 Aug 2017 22:05:02 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v76M4n7N016047; Sun, 6 Aug 2017 18:04:49 -0400 From: Tom Lane To: Andres Freund cc: Petr Jelinek , Peter Eisentraut , Noah Misch , "Augustine, Jobin" , pgsql-bugs@postgresql.org Subject: Re: Replication to Postgres 10 on Windows is broken In-reply-to: <20170806215521.d6fq4esvx7s5ejka@alap3.anarazel.de> References: <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> Comments: In-reply-to Andres Freund message dated "Sun, 06 Aug 2017 14:55:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16045.1502057089.1@sss.pgh.pa.us> Date: Sun, 06 Aug 2017 18:04:49 -0400 Message-ID: <16046.1502057089@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund 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