Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF5IF-0003rX-93 for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:32:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF5IE-0006XL-F4 for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:32:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eF5Gj-0005j4-TM for pgsql-committers@lists.postgresql.org; Wed, 15 Nov 2017 21:30:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eF5Gg-0007lQ-Fs for pgsql-committers@postgresql.org; Wed, 15 Nov 2017 21:30:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vAFLUiJg005682; Wed, 15 Nov 2017 16:30:44 -0500 From: Tom Lane To: Andrew Dunstan cc: pgsql-committers@postgresql.org Subject: Re: pgsql: Add hooks for session start and session end In-reply-to: <6a231271-671f-a5b0-e4ba-a0ae57ba50cd@2ndQuadrant.com> References: <10176.1510764611@sss.pgh.pa.us> <575d6fa2-78d0-4456-8600-302fc35b2591@dunslane.net> <21509.1510772165@sss.pgh.pa.us> <762a0864-a831-1009-c2c7-297695d1e3e4@2ndQuadrant.com> <6a231271-671f-a5b0-e4ba-a0ae57ba50cd@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Wed, 15 Nov 2017 16:11:13 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5680.1510781444.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 15 Nov 2017 16:30:44 -0500 Message-ID: <5681.1510781444@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > On 11/15/2017 02:17 PM, Andrew Dunstan wrote: >> Yeah, that was my first instinct. But then how do the test_rls_hooks >> tests succeed? They too have a shared_preload_library. > Aha, it does >     LOAD 'test_rls_hooks'; > at the start of its script. Of course we can't do that here. > Not sure what the best way to resolve this is. For now I'm inclined just > to override the installcheck target in the module's makefile and disable > it in vcregress.pl. Yeah. > Maybe we need to shift from installcheck to check mode for these > modules. That would involve a buildfarm script change. Seems like expending an awful lot of cycles in support of a rather trivial feature. regards, tom lane