Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxuY6-00HFiQ-24 for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2026 22:18:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxuY4-00Ea11-2p for pgsql-hackers@arkaria.postgresql.org; Wed, 04 Mar 2026 22:18:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxuY4-00Ea0s-1j for pgsql-hackers@lists.postgresql.org; Wed, 04 Mar 2026 22:18:33 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vxuY1-00000000gWm-3UYz for pgsql-hackers@postgresql.org; Wed, 04 Mar 2026 22:18:31 +0000 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-89a1d7cc7f0so7652756d6.1 for ; Wed, 04 Mar 2026 14:18:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772662708; cv=none; d=google.com; s=arc-20240605; b=jVMBjrXe6WvLyIOJZ27YUx4Z9lVPM7KFbE3rRh8d6x4MYR10f/QJaTW8HPPq/2dUDo aV7nrwNuIxs/jRDfbD8SMvYGRxHaWDX7ZojSYutnK9yX4Ck3iy3jJqvJZlFLuQ/ztFm1 pqoexV8fZAfoS/8FlSpbnH/1miBiFnXk/5W3QuXAZ/43e3FAVbsPbhQEQTPnaFQ7CVbd 3I8onUsTtElmizK7dXTGq6MXfM+PjpaaiTCSlX6gx+EEsr9NoLhLxkq1o9B0mOCEHEai mREDcw13kA1zTxJu8tEgC8b3WBUXD4FldeqvcWuj+jvp/t6QTCE0mxIKYbTuRVyMUoGr I4Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=/0RJh1CrQ4pRxJvdjUpzZjKsOubq7+Fa+tdk8WfoTfA=; fh=HRAqjCus3f1J9PnyEXrUnXM6GrkxUNlF0KE66EAy1Xk=; b=TxT5fBGSCpcE66PD43KUVPuKK+vKsUpCr0eEW1Z6JqFbmVxw/rSF/qIialAZabdnmJ Zoj5Sio8cjDh+pBiTjae1XmPJSLgzeiGObwahc3tMiwsyl4yvSZGAe6O+zImfNq9HqFq jtQnc+321apmqfv0Rusn/LhZSuvD1kQYTHqPr/K8DedRsfc4whilfQuqBj3TeQflgQMX j4XFCmzn6yEXid8WokqnmYDt4bJCQijqpIr7KLG5FqAPnScy5A5gAxlUnO8xqOedwdti M5R/kyS6VjVyGE7/mMKKM1GQmJzP8oSellEviR6roHnCGKmhFY/XfIPBLp+BS8RCOXLb AAlA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1772662708; x=1773267508; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/0RJh1CrQ4pRxJvdjUpzZjKsOubq7+Fa+tdk8WfoTfA=; b=dHMgt9HyjCF1dqkrtqnbN4NWHhN1A2chhzQeK1t4z0f9KIYG61/PnH+eSqlD9XUQKl Lj+2I4LKfdhzDOa1C/oBPNf6t/bUhq0sA+L1J4C+FviZWN5MG4XUuiDryWbxR82R3v7z 8/HzzkAmIpD0vvYHlU4F1pOXo4r/CSwM7JlYzA+B59K/6/AusGjaaBhixlqnXTHUgOX0 75vZ/xdk8NStHCnTZV2Q4f+ZfsWi8lguPiEqYEKK1g3u/V87ybO1tcr62EFGsPgN5cbi PTiE19BUOkYztbeNJJocoJOKzMRgrs8oWrcjSSN3m6ZXerB8quTeIe5ZneANt76k1IRk yxFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772662708; x=1773267508; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=/0RJh1CrQ4pRxJvdjUpzZjKsOubq7+Fa+tdk8WfoTfA=; b=bt79Dc9pmXC1CnLOERJ5daS2DmH1CYY+Yc//+bSznu+JiHt8r40m/RPCR96DN7D+xm pjho60sFjKAu2twu1aKyC41DFYK0B8xxj9zeHwNfAeUiwIgoSpIdce7Gn08M5+n2SYHk E9D81/aKpDuKRO7SsCMieJ80vLLWbRMorjZOBfpnnMlS7JdFIrhKnKqfx++tcaVCKdaJ nUjDxtFJ3BnJqDmuvVh6sdFmfxPCNLdCRvPUdpU0T3IPDM0Bp8UbWZkzY4JE6g/m4f6w eb2PyT4Q8Ck7kuxMg3wYhnUw8+QDIl0/7OTfrNdn5J9eDFe5WFG5GD4pqm757linPWwW KdzA== X-Forwarded-Encrypted: i=1; AJvYcCUS/ewRwvs3Omci42OBE49j2lXBYDXBZEn/9NlA0ZavV3FbvMcsvZlPp0i/80AFjw9543OCnkRWZx6Qd+pZ@postgresql.org X-Gm-Message-State: AOJu0YwBOO9cuKTbSjuVy5B+25ulHddUupBGuLq84VL8aso8htbn2Kzs hGqf+ar3QLEmYXpjhOkJUezWrb+XxICkpRuDeW3aajCxydPkmz9zd0X/OcoAUvhYfRTRmqC+2bm bTcF3awpf2B9HRfmrlklWvr9n5/sQj1bKOMfzUJNc X-Gm-Gg: ATEYQzxhByt2T5ILA0YdIk1XOWJXwQakpFZrKf4GaXGKdc5J5WLMjQpkUfWEty40Bgk sbC3emZIDKcOKfhcfyCSAm0a7qqpSkmLyG0LHLMYQXFTU88G/8BhltCGO+UEakWMmqkRf/nabvJ Y+WaZH5d9WZO584RrGunSFfX2dRHdG8mA78CPkiaedWvPGtTB231B5YgQCGwPZH5RLz+9BuAsJP K2EcDyCYHnuiQ0WjToR8YQ7IbITX+p5oIE64txdhVwmDhKmkO7LRLNPnjUm0qh61UCm4GFFQTNM lHaFDaAotSSX1AQhbSrX X-Received: by 2002:a05:6214:da6:b0:89a:14be:459c with SMTP id 6a1803df08f44-89a19ceec44mr56717056d6.33.1772662707766; Wed, 04 Mar 2026 14:18:27 -0800 (PST) MIME-Version: 1.0 References: <7DB528BA-C7A0-4B23-890C-5332FB35A16E@yesql.se> <7094F798-8DD1-4974-9A04-10E147B29581@gmail.com> <15434512-B3FB-4AB3-B6B3-5D85ED0B4BBE@yandex-team.ru> In-Reply-To: From: Jacob Champion Date: Wed, 4 Mar 2026 14:18:16 -0800 X-Gm-Features: AaiRm51Uu0VxzPCabc6Pwo3R6UMRUc_C1cEBa_BEiiwSkJllLCeWttJD93KWtMo Message-ID: Subject: Re: Improve OAuth discovery logging To: Zsolt Parragi Cc: Andrey Borodin , Chao Li , Daniel Gustafsson , PostgreSQL Hackers , Michael Paquier , Tom Lane Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk [cc'ing Tom for awareness] On Wed, Mar 4, 2026 at 12:40=E2=80=AFPM Zsolt Parragi wrote: > Looks like we have some out of order logging, because of the multiple > backends involved. Ugh. In retrospect, then, my commit ab8af1db4 was probably useless. It doesn't improve any existing usage and it can't help future usage. > I'm not sure which solution is better for this: removing the check for > this message from the test The log_unlike() part is the important bit, so that would be my preference. Unfortunately that means the intermittent false failure becomes an intermittent false success, but unless I'm missing something, we might not be able to do better with the current tools. > or modifying connect_ok Well, connect_fails() would seem to suffer the same problem, right? Tom's solution in e0f373ee4 was never meant to handle concurrent backends. I hadn't really considered that all "normal" OAuth connections can have two concurrent backends in practice. (I think of them as serial, but they're not.) We're just getting lucky that we haven't made use of log_[un]like in many problematic cases yet. > to wait for all > backends that started since the connection attempt to finish? Easier said than done, I think. I've wanted to teach the server how to bracket logs of interest for testing purposes for a while now; I don't mind using this as a catalyst. But I don't think it should be done as part of this thread. Thanks, --Jacob