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 1mTW8t-0007Se-Qd for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Sep 2021 21:20:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mTW8s-000087-PA for pgsql-hackers@arkaria.postgresql.org; Thu, 23 Sep 2021 21:20:30 +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 1mTW8r-00007z-MD for pgsql-hackers@lists.postgresql.org; Thu, 23 Sep 2021 21:20:30 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mTW8m-0001SI-ST for pgsql-hackers@postgresql.org; Thu, 23 Sep 2021 21:20:29 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 13E825C0167; Thu, 23 Sep 2021 17:20:22 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 23 Sep 2021 17:20:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=8cxzdfXDY40Ef2tRg87Cpj4ZyhQCAGrv5gXtUO7nn 3Y=; b=ttNu9MS2qTINahpiesSXp+Q4p8l2Hj6oG8dvW4Z+tTdrgyIMD8/fDQgBG AKfAZxxKu+wC3hC9x3gk2fmWxFApnwFlhxTH5oc8At0N9vrNtCkuC2Gx2z88e8Mz Rk4MuKQgU9zoaFuVzsTP+/j8N6/JHZsHX36EIXwFOhNoOI3SY9QM2sryn5AQ76S+ Dv3ArCKv1cP4JAF3RR/xbNltCrHKPxxXZlqyaB5tzL996CiXlllD7QP2uFdAohFN GPTvMx7Ykl/GNYiEJAN1qr7KbmQ48fCmgj84y9nilhx1rbEYsTHWxSabFlJleH2V Vq4N8geL54SF7Bqa/e2wo63MQl70A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeiledgudehkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpefhfeelfeeuveduvdff heejtdejjefglefhtddvffehledutedugeeffedtffffjeenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 23 Sep 2021 17:20:20 -0400 (EDT) Subject: Re: Proposal: Save user's original authenticated identity for logging To: Michael Paquier , Jacob Champion Cc: "pgsql-hackers@postgresql.org" References: <2dba8b35-c607-ae30-07d2-610886aff897@enterprisedb.com> <814ec049ab4085d9efd3a7a654337ac5008cdaf1.camel@vmware.com> From: Peter Eisentraut Message-ID: <846a497e-e020-76c9-b268-103332872d87@enterprisedb.com> Date: Thu, 23 Sep 2021 23:20:19 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.