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 1mTstI-0001rX-Ck for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Sep 2021 21:37:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mTstH-00042M-Bv for pgsql-hackers@arkaria.postgresql.org; Fri, 24 Sep 2021 21:37:55 +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 1mTstH-00040P-3t for pgsql-hackers@lists.postgresql.org; Fri, 24 Sep 2021 21:37:55 +0000 Received: from relay11.mail.gandi.net ([217.70.178.231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTstE-0005CY-OJ for pgsql-hackers@postgresql.org; Fri, 24 Sep 2021 21:37:54 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 3BAC1100003; Fri, 24 Sep 2021 21:37:49 +0000 (UTC) Subject: Re: Proposal: Save user's original authenticated identity for logging To: Peter Eisentraut , Michael Paquier , Jacob Champion Cc: "pgsql-hackers@postgresql.org" References: <2dba8b35-c607-ae30-07d2-610886aff897@enterprisedb.com> <814ec049ab4085d9efd3a7a654337ac5008cdaf1.camel@vmware.com> <846a497e-e020-76c9-b268-103332872d87@enterprisedb.com> From: Andrew Dunstan Message-ID: Date: Fri, 24 Sep 2021 17:37:48 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <846a497e-e020-76c9-b268-103332872d87@enterprisedb.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 9/23/21 5:20 PM, Peter Eisentraut wrote: > On 23.09.21 12:34, Michael Paquier wrote: >> On Wed, Sep 22, 2021 at 03:18:43PM +0000, Jacob Champion wrote: >>> On Wed, 2021-09-22 at 10:20 +0200, Peter Eisentraut wrote: >>>> This should be added to each level of a function call that >>>> represents a >>>> test.  This ensures that when a test fails, the line number points to >>>> the top-level location of the test_role() call.  Otherwise it would >>>> point to the connect_ok() call inside test_role(). >>> >>> Patch LGTM, sorry about that. Thanks! >> >> For the places of the patch, that seems fine then.  Thanks! > > committed > >> Do we need to care about that in other places?  We have tests in >> src/bin/ using subroutines that call things from PostgresNode.pm or >> TestLib.pm, like pg_checksums, pg_ctl or pg_verifybackup, just to name >> three. > > Yeah, at first glance, there is probably more that could be done.  > Here, I was just looking at a place where it was already and was > accidentally removed. It probably wouldn't be a bad thing to have something somewhere (src/test/perl/README ?) that explains when and why we need to bump $Test::Builder::Level. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com