Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dh0Y9-0001r0-RQ for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Aug 2017 21:35:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dh0Y9-0007Ee-88 for pgsql-bugs@arkaria.postgresql.org; Sun, 13 Aug 2017 21:35:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dh0Y8-0007EL-RK; Sun, 13 Aug 2017 21:35:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dh0Y1-0003uS-OL; Sun, 13 Aug 2017 21:35:56 +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 v7DLZhxi023513; Sun, 13 Aug 2017 17:35:43 -0400 From: Tom Lane To: Andres Freund cc: Peter Geoghegan , Noah Misch , Peter Eisentraut , "Augustine, Jobin" , PostgreSQL mailing lists , PostgreSQL Hackers Subject: Re: [HACKERS] Replication to Postgres 10 on Windows is broken 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> <20170811015107.GA3623941@rfd.leadboat.com> <29653.1502416780@sss.pgh.pa.us> <20170812035622.GA3632576@rfd.leadboat.com> <20170813195740.77yejs2ulmqzkpoa@alap3.anarazel.de> <22063.1502657733@sss.pgh.pa.us> <20170813212222.x7xhjjtjddkvgr3s@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Sun, 13 Aug 2017 14:22:22 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23511.1502660143.1@sss.pgh.pa.us> Date: Sun, 13 Aug 2017 17:35:43 -0400 Message-ID: <23512.1502660143@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: > 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