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 1vgnzs-004Dlv-0C for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 17:52:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vgnzq-004WjO-0n for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 17:52:30 +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 1vgnzp-004WjB-30 for pgsql-hackers@lists.postgresql.org; Fri, 16 Jan 2026 17:52:30 +0000 Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vgnzn-000rO7-0C for pgsql-hackers@lists.postgresql.org; Fri, 16 Jan 2026 17:52:29 +0000 Received: by mail-qv1-xf35.google.com with SMTP id 6a1803df08f44-8887f43b224so42700506d6.1 for ; Fri, 16 Jan 2026 09:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1768585944; x=1769190744; 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=ZfBzkHDvz2yazHHiyZpXjg7LxeH5x5a4NW7VGMRhl9k=; b=D11y7Jhi6Uc8r254jeSESFt0JCChPsJpJctYMYbjlhhObQGVTgl8QGxptlzktJBrif bvoL8js1f+iHaEmxWEOEbBAfIC+lVtlBrjCa8Paqb8tZcqD5nlyNSTonT74Y+t55e15M y1MThEDCpoNmzfIBQsMdBaG9sGI8cBo7pDp2u5zbhTdqe4APG51ckZzddY7Hnlpd6LeN 4RJnT9U6XlXG4xKax2lGHdRCiyysBN7L6BcAlDU/ifM8zjqzU012DUbmp/4UmkAgIZpJ JcDYyMdPWInl18l3hAxCMXNKPlQIY5AiSmsp06AWfpaaRMx61So+CwGVMWlvuxmwhtkV 8Otw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768585944; x=1769190744; 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=ZfBzkHDvz2yazHHiyZpXjg7LxeH5x5a4NW7VGMRhl9k=; b=VBkPR3J417mBdtvwONoUytcizkkIJIXmU5f8d3KDWVIcxKKhyk/Ro0ygK/qD75RIuw ax1qkgg9CCaF0h9xB4tkZXQses5HpG199IN9ia9xbWfze18aBXk4Hh0sIdUaUhGqKMS8 W/bphvcycgjBR6sE9d1N6Ol+xYAhKbW8+w/JfX6169H/uxTnwbpQMtw/a6Y4eppFjyKV 3xBWOuF9sQWMXidQFXCxNQROMm5WJG+W8HLFtM0d/r3fuR4INQ74TrmOTPLb+66GbM5J rMfBwc4SmPA9oa5BkFX0tZS1FvTWQC1voUrtluAgRua+yGB38SR74te0NPJyA6S/uATA PoPg== X-Forwarded-Encrypted: i=1; AJvYcCUoAr6v24qVIp3xSKF7gfEidexpeYaOyIiNq89rZZHCsC2oDlBhhpG9ablwPZRpRUZJbJCrIsaKEyS0lnrM@lists.postgresql.org X-Gm-Message-State: AOJu0YyEEe1qui6bC8tuQXEU8DbTuBKBVWjb0BCAhVaYxUCfDdVaF1BO pdbTCUPpvPwabG13BhI+5U6/IxZAO6UMrq7HLdCu0h7JAJGF+P0iaDvhIkNlMSWFJ8AQ8Q7kWlI bUewifpMr7bYx69zN86WZxukvnWUuhuiwR4GkSl6p X-Gm-Gg: AY/fxX6BesQsB37+ei6sJ/xGDE+b07OvPX78FrIz0aHEuLF79pOhhcJdAYtB/ktmYyo lb35A5YXpemnQK2hEn7y2aOmWSRUhnjDb0wzmDgm2ccjVfUujRtdPU+J/KpXxhwHvS56xoVbQY1 i/cthLi2cyyitywm9dqmuhDJes9bFsanWdVfpj7x44UbGocudlCGWotr8hygIBSwmZ2OTHgJwPt U1+29rU76JWfaOpYQN5Y7/RsM0Rkqz5j2+VpiYjTtAzASiVolkRHlvhhKJJjoc7EyutUjhEKw== X-Received: by 2002:ad4:5e87:0:b0:880:42a7:7735 with SMTP id 6a1803df08f44-8942e482999mr63544466d6.35.1768585943998; Fri, 16 Jan 2026 09:52:23 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jacob Champion Date: Fri, 16 Jan 2026 09:52:11 -0800 X-Gm-Features: AZwV_Qg_ietFIvIdG-U7My82XWNy3w698g1D6EPDsMdgrVrynATMLeESzeeDdgI Message-ID: Subject: Re: Custom oauth validator options To: Zsolt Parragi Cc: 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 Fri, Jan 16, 2026 at 9:14=E2=80=AFAM Zsolt Parragi wrote: > * A hba line can be completely generic, which should be above DATABASE > (ALTER DATABASE setting should override HBA setting, as it is more > specific) I think settings in the database should override the ones from the HBA, yes. So that would put PGC_S_HBA right between, what, _ARGV and _GLOBAL? > The first choice seems more logical to me, as that's how pg_hba is > usually used, but I thought this could still be confusing. I agree it could be, but is it any more confusing than if you were to set work_mem in postgresql.conf today, and then `ALTER ROLE ALL SET work_mem` to something completely different? Usability improvements for that should be made GUC-wide, I think, and not influence the chosen order of operations for this feature (as long as there are no new security concerns). I don't want any project veterans, whether DBAs or maintainers, to be surprised by how a new GUC context behaves. --Jacob