Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1igDdp-000194-S4 for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Dec 2019 20:03:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1igDdo-0005CX-JM for pgsql-hackers@arkaria.postgresql.org; Sat, 14 Dec 2019 20:03:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1igDdo-0005CQ-7C for pgsql-hackers@lists.postgresql.org; Sat, 14 Dec 2019 20:03:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1igDdm-0001V6-0S for pgsql-hackers@postgresql.org; Sat, 14 Dec 2019 20:03:51 +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 xBEK3NYV020447; Sat, 14 Dec 2019 15:03:24 -0500 From: Tom Lane To: Andres Freund cc: Peter Geoghegan , Heikki Linnakangas , Robert Haas , PostgreSQL Hackers Subject: Re: tuplesort test coverage In-reply-to: <20191212232521.ubi2eash4nivbkyf@alap3.anarazel.de> References: <20191013144153.ooxrfglvnaocsrx2@alap3.anarazel.de> <20191024181034.b44nr5lugqvfcev2@alap3.anarazel.de> <20191024211027.owa65zwzuqevacbq@alap3.anarazel.de> <20191114002546.a5fqvdmmkfpbir22@alap3.anarazel.de> <3244.1576160824@sss.pgh.pa.us> <20191212232521.ubi2eash4nivbkyf@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 12 Dec 2019 15:25:21 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <20445.1576353803.1@sss.pgh.pa.us> Date: Sat, 14 Dec 2019 15:03:23 -0500 Message-ID: <20446.1576353803@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-12-12 09:27:04 -0500, Tom Lane wrote: >> What seems like a simpler and more reliable fix is to make >> test_mark_restore a temp table, thus keeping autovac away from it. >> Is there a reason in terms of the test's goals not to do that? > I can't see any reason. The sorting code shouldn't care about the source > of tuples. I guess there could at some point be tests for parallel > sorting, but that'd just use a different table. OK, done that way. >> Also ... why in the world does the script drop its tables at the end >> with IF EXISTS? They'd better exist at that point. I object >> to the DROP IF EXISTS up at the top, too. The regression tests >> do not need to be designed to deal with an unpredictable start state, >> and coding them to do so can have no effect other than possibly >> masking problems. > Well, it makes it a heck of a lot easier to run tests in isolation while > evolving them. While I personally think it's good to leave cleanup for > partial states in for cases where it was helpful during development, I > also don't care about it strongly. As far as that goes, making the tables temp is an even better solution. regards, tom lane