pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 19:51:20 -0400
Message-ID: <6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net> (raw)
In-Reply-To: <2600348.1647987525@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>
	<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>
	<2572811.1647972119@sss.pgh.pa.us>
	<8cd8b42f-3f0f-3358-ce6a-0b11ec48363d@dunslane.net>
	<2600348.1647987525@sss.pgh.pa.us>


On 3/22/22 18:18, Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Fixed
> Now that we got past the hard failures, we can see that the test
> falls over with (some?) non-default encodings, as for instance
> here:
>
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=prion&dt=2022-03-22%2020%3A23%3A13
>
> I can replicate that by running the test under LANG=en_US.iso885915.
> What I think is happening is:
>
> (1) Rather unwisely, the relevant InvokeNamespaceSearchHook calls
> appear in recomputeNamespacePath.  That means that their timing
> depends heavily on accidents of caching.
>
> (2) If we decide that we need an encoding conversion to talk to
> the client, there'll be a lookup for the conversion function
> early during session startup.  That will cause the namespace
> search path to get computed then, before the test module has been
> loaded and certainly before the audit GUC has been turned on.
>
> (3) At the point where the test expects some audit notices
> to come out, nothing happens because the search path is
> already validated.
>
> I'm inclined to think that (1) is a seriously bad idea,
> not only because of this instability, but because
>
> (a) the namespace cache logic is unlikely to cause the search-path
> cache to get invalidated when something happens that might cause an
> OAT hook to wish to change its decision, and
>
> (b) this placement means that the hook is invoked during cache loading
> operations that are likely to be super-sensitive to any additional
> catalog accesses a hook might wish to do.  (I await the results of the
> CLOBBER_CACHE_ALWAYS animals with trepidation.)
>
> Now, if our attitude to the OAT hooks is that we are going to
> sprinkle some at random and whether they are useful is someone
> else's problem, then maybe these are not interesting concerns.


So this was a pre-existing problem that the test has exposed? I don't
think we can just say "you deal with it", and if I understand you right
you don't think that either.

I could make the buildfarm quiet again by resetting NO_INSTALLCHECK
temporarily.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com






view thread (62+ messages)  latest in thread

Message-ID: <6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net>
Permalink:  ../6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net/
Also on:    postgresql.org/message-id/6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net

 · 

reply

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: andrew@dunslane.net, tgl@sss.pgh.pa.us, 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: <6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net>
  References: <47F87A0E-C0E5-43A6-89F6-D403F2B45175@enterprisedb.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> <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> <2572811.1647972119@sss.pgh.pa.us> <8cd8b42f-3f0f-3358-ce6a-0b11ec48363d@dunslane.net> <2600348.1647987525@sss.pgh.pa.us> <6067945b-960a-ab04-d40f-06b006a1dcd0@dunslane.net>

* 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