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 1nWiba-0006Y3-9Y for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 17:47:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nWibY-0006q3-Nv for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Mar 2022 17:47:36 +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 1nWibY-0006pt-EU for pgsql-hackers@lists.postgresql.org; Tue, 22 Mar 2022 17:47:36 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nWibV-0006TR-PP for pgsql-hackers@postgresql.org; Tue, 22 Mar 2022 17:47:36 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id 191D81BF20F; Tue, 22 Mar 2022 17:47:28 +0000 (UTC) Message-ID: <1eefe208-0262-e890-756c-6535da2109cc@dunslane.net> Date: Tue, 22 Mar 2022 13:47:27 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: New Object Access Type hooks Content-Language: en-US To: Tom Lane Cc: Mark Dilger , Julien Rouhaud , Joshua Brindle , PostgreSQL-development , Robert Haas , Jeff Davis , Joe Conway , Stephen Frost 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> <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> From: Andrew Dunstan In-Reply-To: <2567295.1647968925@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/22/22 13:08, Tom Lane wrote: > Andrew Dunstan writes: >> On 3/22/22 12:58, Tom Lane wrote: >>> I only suggested removing the error check in _PG_init, not >>> changing the way the test works. >> Mark and I discussed this offline, and decided there was no requirement >> for the module to be preloaded. Do you have a different opinion? > No, I was actually about to make the same point: it seems to me there > are arguable use-cases for loading it shared, loading it per-session > (perhaps via ALTER USER SET or ALTER DATABASE SET to target particular > users/DBs), or even manually LOADing it. So the module code should > not be prejudging how it's used. > > On reflection, I withdraw my complaint about changing the way the > test script loads the module. Getting rid of the need for a custom > .conf file simplifies the test module, and that seems good. > So I'm on board with Mark's patch now. > > OK, I have pushed that. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com