Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFNl8-0008Aa-VX for pgsql-committers@arkaria.postgresql.org; Tue, 01 Oct 2019 19:24:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFNl7-0005Fs-Cz for pgsql-committers@arkaria.postgresql.org; Tue, 01 Oct 2019 19:24:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFNl6-0005FZ-SL for pgsql-committers@lists.postgresql.org; Tue, 01 Oct 2019 19:24:29 +0000 Received: from mail-oi1-x241.google.com ([2607:f8b0:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iFNl2-0007sq-CB for pgsql-committers@lists.postgresql.org; Tue, 01 Oct 2019 19:24:27 +0000 Received: by mail-oi1-x241.google.com with SMTP id 83so15524190oii.1 for ; Tue, 01 Oct 2019 12:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=OK2mWsybE/2Jfs62vtOQ8QQPlsj6ozA3LlhIGQpqqTs=; b=tyMD2A6wRyzPar6ye+4D1X0maXqEj5bsQZyqTNBeSYn2427bGYByjP+snHHNV1ZrYn parRd9elLlIPBiBPNv8Qs0CRionlgmrbP0NHWEvWuwvvxvJct1mSAUginq6/n9RexR2Q hmQMjYZc0LAuroXvvKQeqzib0dPloquqOzpOD4amAx7Z3Zbym2xBfdgTNjnCeD7nx9NB T5lxfb7RaYeQbX2vsEFvP1G+Ttm4zlvJrjSYIlAPHUKF6HNqr+iArYZChC9VuU2no0i9 HeUvguv5z/xNZN6gKx89/Tbiq1TEyWVU8F0Rv9t9Wnqzo38P8uQY/FBVPg0R7O2QJLNB 6x1w== 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:references:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding:content-language; bh=OK2mWsybE/2Jfs62vtOQ8QQPlsj6ozA3LlhIGQpqqTs=; b=AK5bVWAzr3+UJNklDrzqGveCDpH8lC8AKenfLyAuIIEWBpsz5rd+XvVHj/LNx8mWTq u1IH/3nY8A3DfjOBaVNdzudn04s/6HGKcc4vvjsIsjG8wjJods5Ct1ygzAg+C1vtSz+w gtjW7eHRMyapvGCgIIkEyiKwdaNLedGmiz9pFsp8o8nfevERdlyVD2kAkyQOMxsdss+0 C6vxeb9Ywj+8KPtY9Er4o7BSqfBOSSET27BiJ51vx8y9LFEaw3vJ5a5XJeNVP8M0IYsV JC7q7u2hK2iB8vMYV3SS4RRjdvR7Nd7UVZuNjsjGZmbDn/AUOxwlEeNszJVF443OT8Pi FxuQ== X-Gm-Message-State: APjAAAXxLBKoq0LDTIBFEYRbyMKFdKxPMwo/Z0OAznAe7eS5KzYHjsna QwZf9QBdlBRndF1mtukrB+6A35C2nLAdUSOYX/IiG5ppHrzxnC8xaOaaiF75sqlYhJzMjlo0ktp agONcgd6g4dF+LPDAZdPlNr0JcHNmvT3boyIfKNlKURNNB1FlHsewR0hmgmXbL+JMTuHLHPFQ8N aJhuFi9725VqJOBunWhSVPKdi2mgM= X-Google-Smtp-Source: APXvYqzvfjs7xFeFWxI5gxZRqyCn2TpXQlRGfrFdwTPN4JqNmRWVsVhUFdt/6bBh0HKAzsqq1TczLg== X-Received: by 2002:aca:5c45:: with SMTP id q66mr4902812oib.132.1569957863225; Tue, 01 Oct 2019 12:24:23 -0700 (PDT) Received: from [192.168.10.146] (99-10-92-30.lightspeed.rlghnc.sbcglobal.net. [99.10.92.30]) by smtp.gmail.com with ESMTPSA id n27sm4823952otr.32.2019.10.01.12.24.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Oct 2019 12:24:22 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Add hooks for session start and session end, take two To: Michael Paquier , pgsql-committers@lists.postgresql.org References: <20191001045246.GF2781@paquier.xyz> <20191001052245.GH2781@paquier.xyz> <20191001071320.GJ2781@paquier.xyz> <20191001142816.GA25272@paquier.xyz> Openpgp: preference=signencrypt Autocrypt: addr=andrew.dunstan@2ndQuadrant.com; prefer-encrypt=mutual; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNL0FuZHJldyBEdW5zdGFuIDxhbmRyZXcuZHVuc3RhbkAybmRRdWFkcmFudC5jb20+wsCY BBMBAgBCAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAUJDyV6hBYhBOQ+WEYd/Hy/RGkV pZn6f8tZ/DuBBQJcH/EVAhkBAAoJEJn6f8tZ/DuB7BEH/iDWZEbVft2m2MT6SPjARzTupt/l xLLZ/Cl6n2US2hov5+fBbnR5xvECk/YCOfG9ICvKNlpFjceqNLRKStd8cmndnI+kDw91uNM2 hp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 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20191001142816.GA25272@paquier.xyz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 10/1/19 10:28 AM, Michael Paquier wrote: > On Tue, Oct 01, 2019 at 04:13:20PM +0900, Michael Paquier wrote: >> On Tue, Oct 01, 2019 at 02:22:45PM +0900, Michael Paquier wrote: >>> Actually, it makes little sense to allow parallel workers to log their >>> activity in the module. So if there are no objections, I would like >>> to fix that by checking after IsParallelWorker() in the hooks of the >>> module. >> Fixed with 002962dc, and crake has just turned back to green. > Even with that, there is still one failure with Msys and fairywren: > ALTER DATABASE > ============== running regression test queries ============== > test test_session_hooks ... FAILED (test process exited with > exit code 2) 493 ms > ============== shutting down postmaster ============== > > ====================== > 1 of 1 tests failed. > ====================== > > The differences that caused some tests to fail can be viewed in the > file > "C:/tools/msys64/home/Administrator/bf/root/HEAD/pgsql.build/src/test/modules/test_session_hooks/regression.diffs". > A copy of the test summary that you see above is saved in the file > "C:/tools/msys64/home/Administrator/bf/root/HEAD/pgsql.build/src/test/modules/test_session_hooks/regression.out". > > Unfortunately it is a bit hard to grab what the problem actually is. > Andrew, could it be possible to get more information from this animal? I'll fix up the logging. Meanwhile, the log is showing: \c :prevdb regress_sess_hook_usr1 \connect: FATAL:  SSPI authentication failed for user "regress_sess_hook_usr1" That's not surprising given the hba and ident file contents. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services