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 1w9s8h-001qM3-16 for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 22:09:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9s8f-00CPVN-2C for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 22:09:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9s8f-00CPVD-16 for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 22:09:45 +0000 Received: from mail-yw1-x112d.google.com ([2607:f8b0:4864:20::112d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9s8Z-00000000vM5-1KOD for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 22:09:44 +0000 Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-7a299d84b7dso31226937b3.0 for ; Mon, 06 Apr 2026 15:09:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775513379; cv=none; d=google.com; s=arc-20240605; b=CRtfuD0jPH60wweVkdAysWC+VdVQCYNWn/JGP0rGsEQh50EGQivjVj6J+3PAPMoOw+ Trl7OdhgVEB2HoioQM9urcFPAQiplZMDO+nHOr+LPuCWPO+btcSpoQY4hAfMazMklZqh Tw15DyW1i3E/cHYqiLYVzcJN5soDB992XTDW7WlbEQ8cdirUZ+keI1xrfn8GCx6cb4M5 Vx48EW1g6s+X/d6GfabE65+8MObk3e0XVTDsX5yb4UDjOWOUNMP2YZ/zA/ICJQZLcgPx RGxY9/pFa9thI5/xEf8AqFksiOpLWCCh/sGL1debcpH+Ambto25doQKmCfTl6MnxgcLw EplA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=nduFPUdMIlpqm9/4sxFwac+z48k8lAIOOzBuaLSAthE=; fh=WsG2De/DLfk93dor3NFY2xFNjyKE8+XHZbpJfCn2Luo=; b=VlzeGvgwMxoUghih+DaV8gFp4DAabjqBgH3VCBNmMJo0h1H3ZpYm5XWZBVDcLfN4VY Pl7a3PAd2YiFX8KAZ1RW92V2HqGT/zAIDCUa1F/MyRcZm9HYJCU8mTB9xDuzaXPxo/ZM iUgGEpqkUR35fjZEyDps5IEYmKhEBLqywHAdDgRoa8Fy0040J/sCttoB5p7D5NQ3X4UU v9mACT4Qin3v0udXmIBQ/TdHWyAOjOpbu7kK/YPRj9WeY1e8Lw+9NGBPhAxIi9cE8uYd Vz2Zc0C+24hPctlMAF2IBKiqMiDbAlsIpAfz+mnoApyb5mpNUb3KhP2jpxVAOVCnWobx 8wBw==; 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=percona.com; s=google; t=1775513379; x=1776118179; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nduFPUdMIlpqm9/4sxFwac+z48k8lAIOOzBuaLSAthE=; b=cgUS+XGmEnto9XnGJ6++JYh5N217MFSVaCyqATEKwAApUqqtScUsaJC0slPCkukd1U bIIgGPGdD0XAlZqiEzzgqlt7QRlQRgwTdStNgcucuz0/J9flg3H28A+aZmSJja19bvFj AozrZs3NkNELke75WHByJ1ho6BTY+DvzMlTWo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775513379; x=1776118179; h=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=nduFPUdMIlpqm9/4sxFwac+z48k8lAIOOzBuaLSAthE=; b=LgsoWdtjur67u5ozrVO0c98Z0mlKnTDN3jGWHt/cjlFSbovCgr+SClyS++I/todZEx nOZDxAr0OtC8rGP+omrK0e/TgKIpwdaCSR6ovALuMdKosyGOExn3xtOm87wWir/pVjzr CxfozBNR0tx00bSilkBpgrFXEZ7EDgq0pk13K98GXyy6zB+KRaof5/jx6JXgssyKdzRl bfK+6WaFfRpzahjfg8nyO2gJLXRICy830JqftqQFaolj9Ikf8EOxBOyqLddjnqrM3SA1 3GAxP8QRNXUTgIpiHkjYRpErSR+gVNTrFPpW/FWVIoZDYHS4hOlsE8rBvKLhSfzqw2hp R5UA== X-Forwarded-Encrypted: i=1; AJvYcCVdjLwMas8Ls28PodW6A1Su7umODPCc0Ps5jXcl43HI6QkQ56YCl6EvGjjrVQ7JCDGt4neQz9wfBEWck0t2@lists.postgresql.org X-Gm-Message-State: AOJu0Yxr4gcGM/h8gE1eEG6isqwuUPHfgAfSmkg7tWNsAB8XrAZoJUJY 5HDhqnot0fcn5QK0fdZ5oa/vz+PoYZidYFhY4XA8IE014tV9KcrcbVKTbp29+OIRS1OgFpEUJ+M /oxiP8nJ4m4hhqO8O0P6kTrSMzsqus7VEto3xpYQx9aCFuPvFeN9Fcr5U7cWSgs960bLMY/WJss X2rUrXcpx2evYmIGgEvC50oGcO8eh9uLRskUAvyLR1z4/Xno9rd+HZ5K+1ewr/yPL+yhkJDB/DN cTKk/FGvQwnq8zSi79eEXw8dKy22JZX+14MDIxAsUvqXzhHrW7DBtebNT4CH9BHTjc= X-Gm-Gg: AeBDiesdLL5oV+sJRWqD5f8hyLKUb/fSRNXCeH4Oj7J0zDl8/vqdUzVFR3up/XOV0SR wpKjeI1IhsG8dk4DLqzZRBXqYD5XuIR5mqzgOydDPu6iWxADh0e+CRo0VW+IJD2D5g5K8PDPnMV ofas8SQB2s4KCJ9Fm1aNcZNmHbzwsc5X93/i3w5DrZn7C1shMYuq0JgaEK0ch1iHCTXJosLxlKC IdvsoFXIIi4g3GMr70uKoP4OGRejSlZe3D4oJVKcm3JMkEceZGh3iT6Y55JY3JS3jEnbeSO5AQ+ rYLSYYfFCJQRsTsiZojLrAxYm0XpgpqU5bsJPf8g7xm2n0OJ3DVUGuIJXuPRQHBrcJpM X-Received: by 2002:a05:690c:38a:b0:79a:7cff:7b81 with SMTP id 00721157ae682-7a4d556cdf1mr151727667b3.27.1775513378661; Mon, 06 Apr 2026 15:09:38 -0700 (PDT) MIME-Version: 1.0 References: <202601281620.m3hrqtih5b2w@alvherre.pgsql> In-Reply-To: From: Zsolt Parragi Date: Mon, 6 Apr 2026 23:09:27 +0100 X-Gm-Features: AQROBzBgTHUv8HxG9JS835MyMHrh9R8G3oMBumPulJtha_707YxUYhbolJPzkfM Message-ID: Subject: Re: Custom oauth validator options To: Jacob Champion 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" X-CLOUD-SEC-AV-Sent: true X-CLOUD-SEC-AV-Info: percona,google_mail,monitor X-Gm-Spam: 0 X-Gm-Phishy: 0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > 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, 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, this and the other use could cache the option in a local variable instead of making duplicate calls, following the pattern of the documentation.