Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1deTsD-0002OF-7u for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Aug 2017 22:18:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1deTsC-0005Cy-Hs for pgsql-bugs@arkaria.postgresql.org; Sun, 06 Aug 2017 22:18:12 +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 1deTrV-0003yu-Ov for pgsql-bugs@postgresql.org; Sun, 06 Aug 2017 22:17:29 +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 1deTrT-0001VQ-BU for pgsql-bugs@postgresql.org; Sun, 06 Aug 2017 22:17:28 +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 v76MHHpC016751; Sun, 6 Aug 2017 18:17:17 -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: <20170806221042.jbgtks277gjs3l6m@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> <16046.1502057089@sss.pgh.pa.us> <20170806221042.jbgtks277gjs3l6m@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 06 Aug 2017 15:10:42 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16749.1502057837.1@sss.pgh.pa.us> Date: Sun, 06 Aug 2017 18:17:17 -0400 Message-ID: <16750.1502057837@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: > On 2017-08-06 18:04:49 -0400, Tom Lane wrote: >> io_flag has to be *just* the I/O condition, because we use it in a test >> after the WaitLatchOrSocket call. > Hm, right. Wouldn't be particularly consequential, Yes, it would be. The entire point of this loop is to avoid blocking in PQconnectPoll, and that's not guaranteed unless we honor the contract of only calling it when we've gotten the read-ready or write-ready status it asked for. 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