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 1oCiIK-0003vs-Mv for pgsql-committers@arkaria.postgresql.org; Sat, 16 Jul 2022 13:57:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oCiIJ-0006td-Fw for pgsql-committers@arkaria.postgresql.org; Sat, 16 Jul 2022 13:57:19 +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 1oCiIJ-0006oy-8r for pgsql-committers@lists.postgresql.org; Sat, 16 Jul 2022 13:57:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCiIF-00041u-Ay for pgsql-committers@lists.postgresql.org; Sat, 16 Jul 2022 13:57:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 26GDvCUG3820526; Sat, 16 Jul 2022 09:57:12 -0400 From: Tom Lane To: Justin Pryzby cc: Peter Eisentraut , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Log details for client certificate failures In-reply-to: <20220716121723.GW18011@telsasoft.com> References: <20220716113752.GU18011@telsasoft.com> <48b78358-70d8-8de5-02ea-669c4051e4ba@enterprisedb.com> <20220716121723.GW18011@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Sat, 16 Jul 2022 07:17:23 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3820524.1657979832.1@sss.pgh.pa.us> Date: Sat, 16 Jul 2022 09:57:12 -0400 Message-ID: <3820525.1657979832@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Justin Pryzby writes: > On Sat, Jul 16, 2022 at 01:57:25PM +0200, Peter Eisentraut wrote: >> Isn't the cfbot using the same thing? > It's using the same thing, so I suppose the failure is intermittent. > It failed for me just now: https://cirrus-ci.com/task/6502388730167296 It looks like a timing problem, which you'd probably never reproduce on an unloaded development system. On the presumably-busy CI hosts, I think we're managing to examine the log file before the backend has written the log entry. Can we rejigger the backend so that the log entry is written before we shove the failure response out to the client? Maybe not given the implementation technology. In that case the alternatives seem to be (1) insert a delay in the log_like checks (ugh) or (2) abandon attempting to test this particular behavior. regards, tom lane