Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF5ca-0005DA-6R for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:53:24 +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 1eF5cZ-0005Bw-LR for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:53:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eF5cZ-0005Bj-Dk for pgsql-committers@lists.postgresql.org; Wed, 15 Nov 2017 21:53:23 +0000 Received: from mail-yw0-x22e.google.com ([2607:f8b0:4002:c05::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eF5cW-00037e-LO for pgsql-committers@postgresql.org; Wed, 15 Nov 2017 21:53:22 +0000 Received: by mail-yw0-x22e.google.com with SMTP id r186so9247394ywe.13 for ; Wed, 15 Nov 2017 13:53:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=cMwSr+IrZPn+YZ3kFRQKwFznyx6RL7+9MuFYzZQKKps=; b=bf/V+KWLbzN0b2oiKrBKbArrVTniHShbVFQut+R0xTdXy5ImXvTVaTu2S+mLAyWZqK 12p0j3qzC5cECwGsaqA7/9lZfn0Z1nSC5BT3oD2WrVhDNkCpSUHLpjSxXIamgiu9Yzn9 A+lB5oIYsH95SEGoSLKa0+Wt4+eA6p6lu1r3qDJ8ZWg/RQ3buwUn5y5bm8wN55CN7I7O FsQxgEP/b+Tv3ll8NjFREtWB1TqIBhUlLddCSC/Bqle6nP/TTsSEQstxcqTOYa/0CSKP /4PoczKXJhQiX8xbaBtSRRPA48OVSR0wyl8sHAu57YAziprsgjseDrWoAnMdZCBs61xJ ZFtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=cMwSr+IrZPn+YZ3kFRQKwFznyx6RL7+9MuFYzZQKKps=; b=cuqse7GeZ7YDf859SBo8cyz2F7gvP+7LN4xmr/LqJBgCkLmPIi+lliYym9fxDVk3Id CWtUzMmdvQhCgUp4F19Xalv5hPobdqQH80tW9PZ0NAgCP9IO+SdEMzxo9HLntrTupTzN QqxS5E0xzN6Cra7RX4XLVOJG2UecRoyupzrCQaMsZT0NqtctsNvMxC6Cg2nhDXVhn19Y afkJw/pvgP06vp4HG9VCOMENaUCw9GnPHXMLDfk4tjO96Y9dux4GCjvl1qyMz2PE1oew vs2epvLX4F2XOHILW/aFXIcSZXWnLF+yIP2lfgieNj4wv/9vCn4jQzbjPA2f1ZBUOrF0 TcCw== X-Gm-Message-State: AJaThX4cM2/uR2Q4uZtVr00UdhHPfJANJlTcIi2IqUyelpDUnhppdAxl 0xytnjQTMrQixQultvHXTvjFmL317ZGPkMn2oFLZfE9MkILoLx4HM3ZwEOBZwo+4O8/ORrzTzbV r3S5mJBmbXsYQIZ8cYQs4BZx2kKaB20HjeTcbd+y9ZmBL5qcqOQmcQZs0XntfNftWRzrzrWy73W Yl/9R+lRB28oPKmhwI X-Google-Smtp-Source: AGs4zMYaUVbk4154VAA3CxkT/8mmMRAiPZ9uh9CVADlQ9gWBeHhyhmtSEAX7Jx/hIeJfnUlMPl5Z6A== X-Received: by 10.129.137.134 with SMTP id z128mr11687674ywf.141.1510782798991; Wed, 15 Nov 2017 13:53:18 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id h26sm9849989ywk.67.2017.11.15.13.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 13:53:18 -0800 (PST) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Add hooks for session start and session end To: Tom Lane Cc: pgsql-committers@postgresql.org 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> <5681.1510781444@sss.pgh.pa.us> Message-ID: <74fc9ffd-ded3-6139-dd51-440fc15fb1ac@2ndQuadrant.com> Date: Wed, 15 Nov 2017 16:53:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <5681.1510781444@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/15/2017 04:30 PM, Tom Lane wrote: > 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. Possibly. At any rate I'm not going to do it immediately. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services