From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Mark Dilger <mark.dilger@enterprisedb.com>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: Joshua Brindle <joshua.brindle@crunchydata.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Joe Conway <joe@crunchydata.com>
Cc: Stephen Frost <sfrost@snowman.net>
Subject: Re: New Object Access Type hooks
Date: Tue, 22 Mar 2022 12:02:18 -0400
Message-ID: <2541365.1647964938@sss.pgh.pa.us> (raw)
In-Reply-To: <f884a990-fd46-e809-86ca-2709d290cb57@dunslane.net>
References: <47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com>
<CAGB+Vh5PFQskeJDGCSBYMZHKDP9Wo6hLJ_=SnzE=SQwoXaToiA@mail.gmail.com>
<E115F20B-87DF-4FB4-9D21-286D0CA70FA1@enterprisedb.com>
<3ef3f6d7-b7b6-fb90-f3d0-afb1bf2a2cb9@dunslane.net>
<516E8A9F-76AA-4C08-BDE6-259D62060D62@enterprisedb.com>
<fdba7277-722b-a4ce-8027-88e4fc6ef0f8@dunslane.net>
<448E56E1-0C59-441A-A6D0-66B8CFEFE540@enterprisedb.com>
<7f6d54a1-4024-3b6e-e3ec-26cd394aac9e@dunslane.net>
<20220322151444.pagugrb7rjmlee2z@jrouhaud>
<AB996420-4E8B-4A8C-9752-F820FE11B913@enterprisedb.com>
<f884a990-fd46-e809-86ca-2709d290cb57@dunslane.net>
Andrew Dunstan <andrew@dunslane.net> 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:
inline patch 1: /home/postgres/pgsql/src/test/modules/test_oat_hooks/results/test_oat_hooks.out (+6/-0 lines) download inline-1.patchdiff -U3 /home/postgres/pgsql/src/test/modules/test_oat_hooks/expected/test_oat_hooks.out /home/postgres/pgsql/src/test/modules/test_oat_hooks/results/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 = 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andrew@dunslane.net, mark.dilger@enterprisedb.com, rjuju123@gmail.com, joshua.brindle@crunchydata.com, robertmhaas@gmail.com, pgsql@j-davis.com, joe@crunchydata.com, sfrost@snowman.net
Subject: Re: New Object Access Type hooks
In-Reply-To: <2541365.1647964938@sss.pgh.pa.us>
References: <47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.com> <CAGB+Vh5PFQskeJDGCSBYMZHKDP9Wo6hLJ_=SnzE=SQwoXaToiA@mail.gmail.com> <E115F20B-87DF-4FB4-9D21-286D0CA70FA1@enterprisedb.com> <3ef3f6d7-b7b6-fb90-f3d0-afb1bf2a2cb9@dunslane.net> <516E8A9F-76AA-4C08-BDE6-259D62060D62@enterprisedb.com> <fdba7277-722b-a4ce-8027-88e4fc6ef0f8@dunslane.net> <448E56E1-0C59-441A-A6D0-66B8CFEFE540@enterprisedb.com> <7f6d54a1-4024-3b6e-e3ec-26cd394aac9e@dunslane.net> <20220322151444.pagugrb7rjmlee2z@jrouhaud> <AB996420-4E8B-4A8C-9752-F820FE11B913@enterprisedb.com> <f884a990-fd46-e809-86ca-2709d290cb57@dunslane.net> <2541365.1647964938@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox