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 1ltKGj-0006Y4-K3 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jun 2021 01:23:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltKGi-0007HW-77 for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Jun 2021 01:23:00 +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 1ltKGh-0007HO-W0 for pgsql-hackers@lists.postgresql.org; Wed, 16 Jun 2021 01:22:59 +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 1ltKGd-0000YI-Tw for pgsql-hackers@lists.postgresql.org; Wed, 16 Jun 2021 01:22:59 +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 15G1Mpos591708; Tue, 15 Jun 2021 21:22:52 -0400 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Improving the isolationtester: fewer failures, less delay In-reply-to: <20210616011820.2ktysyfozfhqdtha@alap3.anarazel.de> References: <327948.1623725828@sss.pgh.pa.us> <20210615190342.etwfp4mxmuuztumb@alap3.anarazel.de> <437333.1623784464@sss.pgh.pa.us> <501471.1623791340@sss.pgh.pa.us> <20210616011820.2ktysyfozfhqdtha@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Tue, 15 Jun 2021 18:18:20 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <591706.1623806571.1@sss.pgh.pa.us> Date: Tue, 15 Jun 2021 21:22:51 -0400 Message-ID: <591707.1623806571@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund writes: > Only halfway related: I wonder if we should remove the automatic > permutation stuff - it's practically never useful. Probably not worth > changing... Where it is useful, it saves a lot of error-prone typing ... > Minor suggestion: I think the folliwing would be a bit easier to read if > there first were a list of markers, and then separately the longer > descriptions. Right now it's a bit hard to see which paragraph > introduces a new type of marker, and which just adds further commentary. OK, will do. Will act on your other cosmetic points too, tomorrow or so. >> + if (step_has_blocker(pstep)) >> + { >> + if (!(flags & STEP_RETRY)) >> + printf("step %s: %s \n", >> + step->name, step->sql); >> + return true; >> + } > Might be a bug in my mental state machine: Will this work correctly for > PSB_ONCE, where we'll already returned before? This bit ignores PSB_ONCE. Once we've dropped out of try_complete_step the first time, PSB_ONCE is done affecting things. (I'm not in love with that symbol name, if you have a better idea.) regards, tom lane