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 1vv1mh-00HXAf-24 for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 23:25:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vv1lg-003xcc-2K for pgsql-hackers@arkaria.postgresql.org; Tue, 24 Feb 2026 23:24:40 +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 1vv1lg-003xcT-1M for pgsql-hackers@lists.postgresql.org; Tue, 24 Feb 2026 23:24:40 +0000 Received: from mail-qv1-xf2e.google.com ([2607:f8b0:4864:20::f2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vv1lb-0000000184B-3Gn4 for pgsql-hackers@postgresql.org; Tue, 24 Feb 2026 23:24:38 +0000 Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-899a5cb04f9so17141526d6.2 for ; Tue, 24 Feb 2026 15:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1771975474; cv=none; d=google.com; s=arc-20240605; b=XT3fX23bb+5Aw+rnPs998RKeb4JYiDMhIVA0RAulkad0mI0hV3hR/YwkAV/W0B/qPU B8x859Z90tSGNOZFWh1BiEnh0kiumsVuAiVLZGietWYSLU1SaHiRC79lYHCnwVmYadWD 6MdTOc+Oh3Zcc8Swy94s3/uxZjVQaqrPJ5nEZeurC9Bp/H3ptBol6YuSWoKKjb2kG5Xs IwtABQDfPRKfoE0GfBFaGhfpDCZnQBWk+GHCDb2i9NKu4fNPpIk4YNcNVNNaLNymL3Tu qOTMAnJ4fxjPYHHQj/2Ke7aSWiRIWSuMM+5YAzYS4TPuY0lpsoH1wAdQR/uOfRXc4TrW seZQ== 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=PRpLUtbIRreljbZlRjXrY/a+seGRjBAg9Jr09A/lpVg=; fh=LOirQyIplhOpLmdcM8cy0kvehHucQAizRLPc2xstmm0=; b=VlzuCME1cPJO+FzmJ0nmH4yGVLxjODwaRMSdg03BcTN0/q41ybHNDn4wC9h+M7TvjT 5junF8RN1Y8ChpK9cW7UC9m8zUOUYfpM9GZSuAYgNXtEDXdDn46KtdOPT4fuxY3YMlrk gVlrK9AyHrSBXB6cJ1eUye4nP2+JtGJYPgiI9R7vBtaCdrNbh4wMDJOuNxAGmXRdDEix kuTcDZD1Q6D6d4ZXMREQ3hKDhfgHAI/f+688j1CYF3umFGv6N216D+V2BRlFnuzgDv+k Vey3DxgNYME41yWDE4y+AbL1rYOP5Z1sjWuq03Hp96u1360gJTBj5nrjyWeceTgY4xia Q0fQ==; 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=1771975474; x=1772580274; 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=PRpLUtbIRreljbZlRjXrY/a+seGRjBAg9Jr09A/lpVg=; b=V89MopipA15K7e+Wmy6Xah02BdxJfM1RhV40o/LMscmbdYUdgAzKC4nqRs2fxIk3s0 2Y54fNFmE+e58yMFYvWAc/2qq494yYduf/kD9cVfoeJqJpnKInn8uGYjoGs4OqTwFMrB Eo6iBq3ItsGdDoxTXfpNdaQR3SLEl1SHP5z+8FtBcoioH5GMZZJupAHDrbWszt9QuI0v Pyt7ckqMpfsPA2iRiwI8pxUud7c/+XJIc2bkg3cuCIO3R7bAUdO805xLnD68NZ4eyb46 32YcwH5wb7Uv9fz8vPz48GQgPvhZI0rvyD8EwnayaOyv10Xx2rExDDuhn96Wb5X8l7jX azMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771975474; x=1772580274; 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=PRpLUtbIRreljbZlRjXrY/a+seGRjBAg9Jr09A/lpVg=; b=eJaqDmfp2A2bVU2mNZTy18dbEYh/Qi0sbd2Ztzorj3G5U/tq26ia81RTxlQ2kBRTYE OBh2zpHs1DXrMq73oiy+mwaqAFbcjzfnUBsR0eE79PFRjBZzxRZEg2Mz6fj5pN8rKwiI DNgM0GeShcnCBVduocsgbE8iX8+pJlskvKgISc0uvR9FcSaD+EXrhHWXlbaicJ3k0kEk zbzX5mwwkTsLSDFgVdC9DOQ14E7+84L4M3IXDpr6TAggoE+XQrD4rcKAykd5ILDSF83T FORfsdsbQFBYErBP+zpmlr7P0s9QY0bs/u69dNikftAnfC9Ct07RM6NUgkYS/acZKzIX 84Qg== X-Forwarded-Encrypted: i=1; AJvYcCUE+vQC5VvJiXnOaS0iA/y+D1bykR+Gq0hLpaCrqViNmkjTt1LSyKcCO6NbJEh8twykdvK00/eZmAKYNybE@postgresql.org X-Gm-Message-State: AOJu0YyKbTq7pttKN06Kryrzvoq8nTya5SNpzw7lmEwhqI7W4gw/xhp+ 4Nspylc0nAiIhGzwKvQ2W/z5L9qO4rQgr/Po3s3pqmuj0yPnB5CMZn0RxZJcKtF87DlKYh5eAz0 qRtT/9VI65L2DWr8VTlxv74i0Fw96C0BjAHwA3gt5 X-Gm-Gg: ATEYQzxj7yE43vfOn6TseobXPJ/x0LXGOY3AUbIvPmpxEmSBmyzdy9oSWpUho2lPmHm IGMmSwO9dQCkQNrIZ/B2OPj935kew4SkYGL1XbWDmVsEq7C90uaxSDbbocKIVedOujE8A2KaCtb LJfubGC83Bk3p7AMHfnreDYLvzKKOxugZtou8fXSDe319ua2Ox1ml6sCp6XNmiV31Z9TqSmBD4/ fO5dG+pF8IgelNwLQ1Y/3vKr7gLqkI9LdtpnxvqWELVJDZZ24pj2rk93IObLVUM1NoPINBY92ca 30fTu0tYW6YBVZHzP1c/ X-Received: by 2002:a05:6214:5293:b0:882:44cc:f572 with SMTP id 6a1803df08f44-89979c6f277mr199114166d6.20.1771975474316; Tue, 24 Feb 2026 15:24:34 -0800 (PST) MIME-Version: 1.0 References: <7DB528BA-C7A0-4B23-890C-5332FB35A16E@yesql.se> <7094F798-8DD1-4974-9A04-10E147B29581@gmail.com> In-Reply-To: <7094F798-8DD1-4974-9A04-10E147B29581@gmail.com> From: Jacob Champion Date: Tue, 24 Feb 2026 15:24:23 -0800 X-Gm-Features: AaiRm51KIBClg26QrTR-o4vHAjHwa9wR8lfF44NFx_ryGjxR3yjwdOm2mRwn6kY Message-ID: Subject: Re: Improve OAuth discovery logging To: Chao Li , Zsolt Parragi Cc: Daniel Gustafsson , PostgreSQL Hackers , Michael Paquier 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 > On Feb 13, 2026, at 21:13, Zsolt Parragi wrot= e: > > Maybe something like PG_SASL_EXCHANGE_ABANDONED? > > This is the only one I wasn't sure of, I used RESTART because I was > focusing more on the intention of the server ("please restart > authentication with this additional information"), and a bit also on > the idea that later restart could stay even within the same > connection, both in this case and if we add support for > reauthentication on token expiration. I think "abandoned" would still work as a descriptor if we eventually supported multiple SASL exchanges per connection. On Mon, Feb 23, 2026 at 7:01=E2=80=AFPM Chao Li wr= ote: > Looks like you forgot to update the commit message to change PG_SASL_EXCH= ANGE_RESTART to PG_SASL_EXCHANGE_ABANDONED. Yes -- though keep in mind that committers will often rewrite commit messages from scratch. So while keeping it accurate and well-written should be the goal, perfection isn't required to move something into RfC. Speaking of which: Zsolt, would you mind adding this to the Commitfest? > "ctx->state =3D OAUTH_STATE_FINISHED;" is duplicated in the =E2=80=9Cif= =E2=80=9D and after the =E2=80=9Cif=E2=80=9D, so it can be pull up to befor= e the =E2=80=9Cif=E2=80=9D. +1 --Jacob