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 1w9sFu-001qTN-09 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 22:17:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9sFs-00CRln-0D for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 22:17:12 +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 1w9sFr-00CRlb-2U for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 22:17:12 +0000 Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9sFp-00000000ybr-0FK8 for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 22:17:11 +0000 Received: by mail-qv1-xf2c.google.com with SMTP id 6a1803df08f44-89f87257904so39663176d6.1 for ; Mon, 06 Apr 2026 15:17:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775513827; cv=none; d=google.com; s=arc-20240605; b=MTt5aX+jdh/emutd09y3wsrqVCg74IOgQf5JX90IT7F0Zcm8uLFLbKYb9i6BDVJj0I fTMcmANVAEZDqJ6n5SeW95z0yFX+aIqKk7zZruk9W6Ha3isTWakRALC9z93QrckNyxB5 LbNZ37Jylc26IpxKSaaj89WCo1n6Km3hXZ8vI1NOFf9cPn6COvNnc3Dhu4M7nLYxowO+ LeZ5nwIJMa34Hwd1Ca6RBkBy5X0JXh++blDjGQHAobxsinuCtWZLxtfiVVs5gEGGgvSo FtR887fR77nmlTX1i3HlEdBlT0vtCuXAkcM2fIURDkl3sTNax0cTDUPPotSA5EVQTGdQ UIAg== 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=FRjeFlybMN3qq1us/68AWHonCkBgFY3OY2PEmzl+6VU=; fh=A4ky9gQY1hEwzYk45rhT9ueZpKfJjPWDQFmfG5/2VtU=; b=iNPb7ncwn37FdqHMEe4YrROD9263fKdqqqwE8AVpRIa4/2PekzxPGJw438BZD+ksYE lYAkvhs3JJrQdf4/fhsNYbvcLPCNxwT4MTnF0rqmIQ0e/oXftMxLdDyT+af4MAUHmY7d UCx569zie34jyvg0azoW6/SrmEJWBhAN4BTjfvMZE5HNZqP9+s1+lfOHyLf94W4CepUv j/vW2oVnoR3iPkpc3IWDR9UCIFCGcQjceLHgG8vrU0R63usa3DT0zlDNrb17BuTW0slL CZw8I/siBB3CqpEwgNfJ/sAWUsIkFqkZDZ8JRN9879UHTMoxrEsLS4uxSudkucLexGmE 8zRw==; darn=lists.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=1775513827; x=1776118627; darn=lists.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=FRjeFlybMN3qq1us/68AWHonCkBgFY3OY2PEmzl+6VU=; b=SpP4wI3DSFnVB/MztjEmgol8hjC8mO4hV6+qHVMksML+eERTTcTwznznN+96LZUsRE IARMJX0l6syXhTSJgtkMnaFO+a6VkPrMmi2paONpi9tUcI+/4XB/+GFS5y9/VoI4c0ch hGZGSj+6+ZktmlUuMPTmhdPDefwkvhASppwN/PjwRq+BME5c5pBDLmSJV3zlZYOhn1JZ ZbtqSjzWn/MzsUpA6VL0ReaLiMWPG/p+dFevDw0/KjrLD5qeD9Q/z5LQCX9JFLP38EYK JtKf4jVLRJDEFuleQa3lu0MfHOwW3ckcjnu3ldq4xTu7p0rzLkH7OstfD6tp7GRMF++6 LAVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775513827; x=1776118627; 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=FRjeFlybMN3qq1us/68AWHonCkBgFY3OY2PEmzl+6VU=; b=D+YnkMZdic8UnpGj9ZiLhJC3JK4SFBIB3VBL2+GG989sN9jEJhtIZX10mXdfzbpvi+ 3Zvrs0pGXyLTW03uBvqmHjNAWoC3ThpEBXtOjbUsoC+fyIcm8zWSCHswbDP5zS91yraJ piZ88I0ouCFqCEGvghH+B7fKFcfh/IjqzqBwXyUPzUCH68+ODKxGbrBKGzfmnpM0NXpi 8RF2Kf/y7HNgBo0QsuIi727bbE3M2o65vSk9KRaIYovCHhB2xjy4axvGJrPROd+12KWE SzqkzCH9CDi0IuAyvGq4EoKh1hLEpuPDisOXHRDHDl2kqNtbAB45aV34puHLy3YeO2+T Gt9A== X-Forwarded-Encrypted: i=1; AJvYcCVe5Ns2OZLnihsmBBc+JSL6+k8q5iQaevu7h9p9aIcQoTb6fJDyG0/xhGEiCoUjCAO6RdNktVUOkMo1F9Ai@lists.postgresql.org X-Gm-Message-State: AOJu0YyABPrnyJ8pFwe8tcWx9QUgEbeQJGO9DZmMOh5+ZhXXzlahiYaF CMMQqFMAKs/Xe3V9oAjyjD65DlZNbeAXdB6F7LbFKeOXGhpAMdEMKvTihZ4sYyDwNZ5I2sTGCbe rCd16Uy7QmrQEq4q+yTL5mUkqktXCcKh2N6pzMDA6 X-Gm-Gg: AeBDievWIlrPg/Dx/9ooiPcK3nJC+yOcapsEKp26LWic4aHZPvb0t97fcnei6XOvayX UZWG2aeLcIO2SyK3FPNe4ZWT0VxtpS5o8/awDA/hKSIpr8QoCUUvD1rCNAf6J66mR5mzj3z02fb OYOmu13WWvGrSjW0xfQbu404/Fapd3em06K1XBdyXbgt1ghiJR8biWI3bWpPh54j12RSpxPVOw8 nhsFJzClKjAwJ2m+lYvt0lbBsgzUrbHkubv3dB28Vj3LS5RWfmeIS01pU0E+Zye3hjwazBd9IoU ItuYSIYieg== X-Received: by 2002:a05:6214:4c8b:b0:89a:116b:e67c with SMTP id 6a1803df08f44-8a83ba60ecdmr171416866d6.45.1775513827248; Mon, 06 Apr 2026 15:17:07 -0700 (PDT) MIME-Version: 1.0 References: <202601281620.m3hrqtih5b2w@alvherre.pgsql> In-Reply-To: From: Jacob Champion Date: Mon, 6 Apr 2026 15:16:55 -0700 X-Gm-Features: AQROBzChc-rJpv9madETAlVRzhbfbxDP_dFqK7pYROjLcZ59Gkt40ejeaJoQftE Message-ID: Subject: Re: Custom oauth validator options To: Zsolt Parragi Cc: Nikolay Shaplov , =?UTF-8?Q?=C3=81lvaro_Herrera?= , VASUKI M , PostgreSQL Hackers , david.g.johnston@gmail.com, Robert Haas , myon@debian.org 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 Mon, Apr 6, 2026 at 3:09=E2=80=AFPM Zsolt Parragi wrote: > > I believe this is now a complete patch > > proposal; tear it apart. :D > > The patch looks good to me as is, I don't see any real issues with it, Great! I am prepping for a commit Sometime Very Soon. > maybe one cosmetic question in the test. > > + if (GetOAuthHBAOption(state, "log")) > + elog(LOG, "%s", GetOAuthHBAOption(state, "log")); > + > > If we treat the test code as an example for real implementations, (It's not, though -- my test code is frequently abusive on purpose and should not be used as best-practice. If we want compilable sample code, that looks different from tests IMHO.) > this > and the other use could cache the option in a local variable instead > of making duplicate calls, following the pattern of the documentation. In this case, I want the test to pin the behavior that multiple calls should work as you'd expect. Thanks, --Jacob