Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHWsI-0006Uj-Ct for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Sep 2020 18:37:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kHWsH-0002dB-By for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Sep 2020 18:37:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHWsH-0002d4-0s for pgsql-hackers@lists.postgresql.org; Sun, 13 Sep 2020 18:37:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kHWsA-0004mt-K8 for pgsql-hackers@lists.postgresql.org; Sun, 13 Sep 2020 18:37:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08DIb80M855417; Sun, 13 Sep 2020 14:37:09 -0400 From: Tom Lane To: Victor Spirin cc: pgsql-hackers@lists.postgresql.org Subject: Re: Sometimes the output to the stdout in Windows disappears In-reply-to: References: <4124040.1598898684@sss.pgh.pa.us> Comments: In-reply-to Victor Spirin message dated "Mon, 31 Aug 2020 22:38:36 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <855415.1600022228.1@sss.pgh.pa.us> Date: Sun, 13 Sep 2020 14:37:08 -0400 Message-ID: <855416.1600022228@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I happened to try googling for other similar reports, and I found a very interesting recent thread here: https://github.com/nodejs/node/issues/33166 It might not have the same underlying cause, of course, but it sure sounds familiar. If Node.js are really seeing the same effect, that would point to an underlying Windows bug rather than anything Postgres is doing wrong. It doesn't look like the Node.js crew got any closer to understanding the issue than we have, unfortunately. They made their problem mostly go away by reverting a seemingly-unrelated patch. But I can't help thinking that it's a timing-related bug, and that patch was just unlucky enough to change the timing of their tests so that they saw the failure frequently. regards, tom lane