Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eF4xu-0002U0-Q0 for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:11: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 1eF4xu-0003qR-4n for pgsql-committers@arkaria.postgresql.org; Wed, 15 Nov 2017 21:11: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 1eF4xt-0003qH-T4 for pgsql-committers@lists.postgresql.org; Wed, 15 Nov 2017 21:11:22 +0000 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eF4xp-0007Et-PJ for pgsql-committers@postgresql.org; Wed, 15 Nov 2017 21:11:21 +0000 Received: by mail-yw0-x22b.google.com with SMTP id k3so17619796ywk.8 for ; Wed, 15 Nov 2017 13:11:17 -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=hr3+KPs/TIpPZ9KJVi8hDWh7OWtZfAmqQR4Qbjs1S7k=; b=ePtq0P16MtzgBYQ3uCEwntV45sx9rdAFiSNKiAJzcb8qbGKorLO4cSOIlES8gr2QIE 59xP26oJRrQ4hoLzjpU3EAAh19LGITBvFe6K7xrw/ldJfVt8+YNtMIkeM4v2q56A6vw6 dN1n1EE/t4mfCdSIfqR0DqDEdzknfmOCXinkmsmSKOW2EkARm7qWVbUynW3wN/SS9urL Qlc0rCpq+7re0OkAFbsEFxbYDlkJ9SPXPZUtMfXY/0fwgBTlcf+htfMf0kj/VRtTkyeJ J+7qTzSZ/lHct9cu6jdwaPCzNTLVkrNK8l/cKiHlt+AClBfFU7tVCGMtsd3VMuDmoF+/ AOEg== 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=hr3+KPs/TIpPZ9KJVi8hDWh7OWtZfAmqQR4Qbjs1S7k=; b=D2d7prtOvmIHP8IYcM802m/OLlnSKhWxdxzns09pHwdYBS+gcyXgqtnBGh8lGHADoD XhRK2zZvWMPr61rtQqGUBqRVxKpTpXO10fc6dw/Y+qe8oRMi0dOF+ZavKmnAKchpHxYF qbn6umWNdUQbBhoE5PDOE3nu4jwy3QGi5g/QyETTnxDcPdviYxKhXnhnsQntIdL7FhzU VeJ8JhX1uqaA3UaMii5FJYKoDr6BQfrWmApUG0vtXpMCFYCbJiRaAG+vG5afMeyV1Dvs XOU3vALG9qbKzbYPspm9ko0MTEn1B9nrz1zjsuc1YmGPFWDB/LIG1gvOPzYwf1QGTb1E ZOBg== X-Gm-Message-State: AJaThX6+IfuDnlnnNE1XujvHE6vCj+5jbCtwfzqooAzhHymcKIHiLGul Vs6qLujBwelxTe2eRrVRQn4n/yXdGYuKbPBQ65obXx6M1PAiRQsZC3yO5evZtUVkk4w0fGFs6ie OguvwV51JdDfdcpohFd/3sTTiD6MRH0D8k410YJM0pFqT8T+wsDtuJ22HZGH0iBoyfFSft5opWI WEbYhs5vbP3IDAM/Tu X-Google-Smtp-Source: AGs4zMbs7xlsU84/o8zByXRw3poREF9Gt2uBO6D1l+iYl2OEUK/E/hfZgWaxM+uHKO25dA1NsGOfbA== X-Received: by 10.37.218.194 with SMTP id n185mr842579ybf.241.1510780274993; Wed, 15 Nov 2017 13:11:14 -0800 (PST) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id q67sm9818587ywd.22.2017.11.15.13.11.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Nov 2017 13:11:14 -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> Message-ID: <6a231271-671f-a5b0-e4ba-a0ae57ba50cd@2ndQuadrant.com> Date: Wed, 15 Nov 2017 16:11:13 -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: <762a0864-a831-1009-c2c7-297695d1e3e4@2ndQuadrant.com> 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 02:17 PM, Andrew Dunstan wrote: > > On 11/15/2017 01:56 PM, Tom Lane wrote: >> Andrew Dunstan writes: >>> On 11/15/2017 11:50 AM, Tom Lane wrote: >>>> Andrew Dunstan writes: >>>>> Add hooks for session start and session end >>>> Buildfarm doesn't like this one bit :-( >>> Strange, it worked when I tested. I'll look into it. >> Looks to me like the problem is that the test can only work in "check" >> mode, not "installcheck" mode, because in the latter case you don't >> get to do preloaded libraries. >> >> > > > 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. Maybe we need to shift from installcheck to check mode for these modules. That would involve a buildfarm script change. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services