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 1nWnCN-0005DV-5s for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 22:41:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nWnCM-000105-1E for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 22:41:54 +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 1nWnCL-0000zw-O6 for pgsql-hackers@lists.postgresql.org; Tue, 22 Mar 2022 22:41:53 +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 1nWnCJ-000311-Jd for pgsql-hackers@postgresql.org; Tue, 22 Mar 2022 22:41:52 +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 22MMfjIC2611319; Tue, 22 Mar 2022 18:41:45 -0400 From: Tom Lane To: Mark Dilger cc: Andres Freund , Andrew Dunstan , Julien Rouhaud , Joshua Brindle , PostgreSQL-development , Robert Haas , Jeff Davis , Joe Conway , Stephen Frost Subject: Re: New Object Access Type hooks In-reply-to: References: <7f6d54a1-4024-3b6e-e3ec-26cd394aac9e@dunslane.net> <20220322151444.pagugrb7rjmlee2z@jrouhaud> <2557598.1647966829@sss.pgh.pa.us> <74B3B4DC-9909-40BB-B1DD-B4E0BA90765D@enterprisedb.com> <2566579.1647968299@sss.pgh.pa.us> <15e21fc0-a23b-bd8d-d71c-2cf326c97971@dunslane.net> <2567295.1647968925@sss.pgh.pa.us> <1eefe208-0262-e890-756c-6535da2109cc@dunslane.net> <20220322222011.3lkygr6julmbhewi@alap3.anarazel.de> Comments: In-reply-to Mark Dilger message dated "Tue, 22 Mar 2022 15:37:37 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2611317.1647988905.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Mar 2022 18:41:45 -0400 Message-ID: <2611318.1647988905@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Mark Dilger writes: >> On Mar 22, 2022, at 3:20 PM, Andres Freund wrote: >> Seems like it might actually be good to test that object access hooks w= ork >> well in a parallel worker. How about going the other way and explicitly= setting >> force_parallel_mode =3D disabled for parts of the test and to enabled f= or >> others? > Wouldn't we get differing numbers of NOTICE messages depending on how > many parallel workers there are? Or would you propose setting the > number of workers to a small, fixed value? The value would have to be "1", else you are going to have issues with notices from different workers being interleaved differently from run to run. You might have that anyway, due to interleaving of leader and worker messages. regards, tom lane