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 1nWgxp-00018L-75 for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 16:02:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nWgxo-0005w4-69 for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 16:02:28 +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 1nWgxn-0005vv-Tt for pgsql-hackers@lists.postgresql.org; Tue, 22 Mar 2022 16:02:27 +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 1nWgxl-0008BX-HU for pgsql-hackers@postgresql.org; Tue, 22 Mar 2022 16:02: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 22MG2IbT2541366; Tue, 22 Mar 2022 12:02:18 -0400 From: Tom Lane To: Andrew Dunstan cc: Mark Dilger , 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: <47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com> <3ef3f6d7-b7b6-fb90-f3d0-afb1bf2a2cb9@dunslane.net> <516E8A9F-76AA-4C08-BDE6-259D62060D62@enterprisedb.com> <448E56E1-0C59-441A-A6D0-66B8CFEFE540@enterprisedb.com> <7f6d54a1-4024-3b6e-e3ec-26cd394aac9e@dunslane.net> <20220322151444.pagugrb7rjmlee2z@jrouhaud> Comments: In-reply-to Andrew Dunstan message dated "Tue, 22 Mar 2022 11:48:45 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2541364.1647964938.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 22 Mar 2022 12:02:18 -0400 Message-ID: <2541365.1647964938@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > That seems quite weird. I'm not sure how it's getting loaded at all if > not via shared_preload_libraries Some other animals are showing this: diff -U3 /home/postgres/pgsql/src/test/modules/test_oat_hooks/expected/tes= t_oat_hooks.out /home/postgres/pgsql/src/test/modules/test_oat_hooks/resul= ts/test_oat_hooks.out --- /home/postgres/pgsql/src/test/modules/test_oat_hooks/expected/test_oat= _hooks.out 2022-03-22 11:57:40.224991011 -0400 +++ /home/postgres/pgsql/src/test/modules/test_oat_hooks/results/test_oat_= hooks.out 2022-03-22 11:59:59.998983366 -0400 @@ -48,6 +48,8 @@ SELECT * FROM regress_test_table; NOTICE: in executor check perms: superuser attempting execute NOTICE: in executor check perms: superuser finished execute +NOTICE: in executor check perms: superuser attempting execute +NOTICE: in executor check perms: superuser finished execute t = --- (0 rows) @@ -95,6 +97,8 @@ ^ NOTICE: in executor check perms: non-superuser attempting execute NOTICE: in executor check perms: non-superuser finished execute +NOTICE: in executor check perms: non-superuser attempting execute +NOTICE: in executor check perms: non-superuser finished execute t = --- (0 rows) @@ -168,6 +172,8 @@ ^ NOTICE: in executor check perms: superuser attempting execute NOTICE: in executor check perms: superuser finished execute +NOTICE: in executor check perms: superuser attempting execute +NOTICE: in executor check perms: superuser finished execute t = --- (0 rows) I can duplicate that by adding "force_parallel_mode =3D regress" to test_oat_hooks.conf, so a fair bet is that the duplication comes from executing the same hook in both leader and worker. regards, tom lane