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 1mVHiO-0000j2-LS for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Sep 2021 18:20:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mVHiN-0000fH-Ib for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Sep 2021 18:20:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVHiN-0000f8-Aa for pgsql-hackers@lists.postgresql.org; Tue, 28 Sep 2021 18:20:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVHiL-0001aq-9t for pgsql-hackers@postgresql.org; Tue, 28 Sep 2021 18:20:26 +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 18SIKIiG2855068; Tue, 28 Sep 2021 14:20:18 -0400 From: Tom Lane To: Mark Dilger cc: Michael Paquier , Andrew Dunstan , Noah Misch , PostgreSQL-development Subject: Re: Fixing WAL instability in various TAP tests In-reply-to: <0AE9B97A-EE55-41DD-A913-CDBCAA8E2214@enterprisedb.com> References: <32A1FDD1-9C7B-43B1-B3EE-49198DD3F887@enterprisedb.com> <20210925052151.GA4082552@rfd.leadboat.com> <2E9D28A3-1B54-446B-AC12-3BF86A2B522A@enterprisedb.com> <2502590.1632579467@sss.pgh.pa.us> <2B4C64CF-EE3F-474B-9685-6A927E5E49AE@enterprisedb.com> <20210925160039.GA4134968@rfd.leadboat.com> <193AC968-C348-4D81-88BC-384560F87500@enterprisedb.com> <2769443.1632773967@sss.pgh.pa.us> <2801531.1632795612@sss.pgh.pa.us> <2852500.1632850031@sss.pgh.pa.us> <0AE9B97A-EE55-41DD-A913-CDBCAA8E2214@enterprisedb.com> Comments: In-reply-to Mark Dilger message dated "Tue, 28 Sep 2021 11:07:54 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2855066.1632853218.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 28 Sep 2021 14:20:18 -0400 Message-ID: <2855067.1632853218@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: > Looking closer at the TAP test, it's not ORDERing the result set from th= e SELECTs on either node, but it is comparing the sets for stringwise equa= lity, which is certainly order dependent. Well, it's forcing a bitmap scan, so what we're getting is the native ordering of a bitmapscan result. That should match, given that what we're doing is physical replication. I think adding ORDER BY would be more likely to obscure real issues than hide test instability. regards, tom lane