Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ok67e-0002fJ-LQ for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Oct 2022 16:04:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ok67c-00023o-TQ for pgsql-hackers@arkaria.postgresql.org; Sun, 16 Oct 2022 16:04:16 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ok67c-000233-JR for pgsql-hackers@lists.postgresql.org; Sun, 16 Oct 2022 16:04:16 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ok67W-0006uG-5a for pgsql-hackers@postgresql.org; Sun, 16 Oct 2022 16:04:15 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 2AFD35F7B7; Sun, 16 Oct 2022 12:04:09 -0400 (EDT) Date: Sun, 16 Oct 2022 12:04:09 -0400 From: Stephen Frost To: Nathan Bossart Cc: Robert Haas , Tom Lane , Joe Conway , Michael Paquier , Joshua Brindle , PostgreSQL-development Subject: Re: use has_privs_of_role() for pg_hba.conf Message-ID: References: <20221007032711.GA499771@nathanxps13> <20221007194430.GA550749@nathanxps13> <3347532.1665173939@sss.pgh.pa.us> <20221007215836.GB814385@nathanxps13> <87994809-5b2c-08f0-0ab3-3c76c49afada@joeconway.com> <3574712.1665242046@sss.pgh.pa.us> <20221008170640.GA825354@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C5hrS8LzPlYhDf2K" Content-Disposition: inline In-Reply-To: <20221008170640.GA825354@nathanxps13> User-Agent: Mutt/2.1.4 (2021-12-11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --C5hrS8LzPlYhDf2K Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Nathan Bossart (nathandbossart@gmail.com) wrote: > On Sat, Oct 08, 2022 at 11:46:50AM -0400, Robert Haas wrote: > > Now there may be some other scenario in which the patch is going in > > exactly the right direction, and if I knew what it was, maybe I'd > > agree that the patch was a great idea. But I haven't seen anything > > like that on the thread. Basically, the argument is just that the > > change would make things more consistent. However, it might be an > > abuse of the term. If you go out and buy blue curtains because you > > have a blue couch, that's consistent interior decor. If you go out and > > buy a blue car because you have a blue couch, that's not really > > consistent anything, it's just two fairly-unrelated things that are > > both blue. >=20 > I believe I started this thread after reviewing the remaining uses of > is_member_of_role() after 6198420 was committed and wondering whether this > case was an oversight. If upon closer inspection we think that mere > membership is appropriate for pg_hba.conf, I'm fully prepared to go and > mark this commitfest entry as Rejected. It obviously does not seem as > clear-cut as 6198420. And I'll admit I don't have a concrete use-case in > hand to justify the behavior change. Looks like we've already ended up there, but my recollection of this is that it was very much intentional to use is_member_of_role() here. Perhaps it should have been better commented (as all uses of is_member_of_role() instead of has_privs_of_role() really should have lots of comments as to exactly why it makes sense in those cases). Thanks, Stephen --C5hrS8LzPlYhDf2K Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEwf6gbxKhD863zrx/7WyKOINHZFUFAmNMK3UACgkQ7WyKOINH ZFUuCw/5AR8lQ7vaYtAyVUgiOIwZAmV9+n4aylec4fzozDfs3CXS/IeRQZTHyNmc u/j9Z7fY0QQHGJLluPs7O5PUQIWNgOePUc9q8lJI6CcciCzP/6S4dDPLP7mViHA4 7INx4eRcShRv7LjjCa1Zfp+4aJZ/9dTSKeMwzicI451VWcre8DWM1wsoGE2Xd5hR NM4YI4UsLw2GqEMIcgs7Os8rFLTER9jNksIw07Lb2OWgBnOqS4sSP8l4gNG+V+Hh bvrWiRB3GZj88RA5ehJwF9DzIJD2RsW3KeFcTqvWtDEEFneg5B/jYXn/hyGBN5iF XeVwjkAmPKsQZLcgKlbDylPJ8SzRCtDR9K/BMiqOYoqp8Y7lLWn6IOsSYeCGhFpy 4lBJoQcIXo3YqC/p5esIDWtPui59BMylhQA7+JTzPrgMlcCTHVcwj7Nuo64cYNMJ 5W4q+LriatZLQ9J+yhVbow2tzY4XkM+9GIwMpEshJiOgypvBQaNljirRbIIcGjPu WGX9h92i9L0wBnmBkkWVGk7Syt+8EIyIuVlEx+qcH1ufVIzplO1Zk25Ftf+4MhhF rFJD+eeN8zkvhcX8b0pL2fjLUBkep1NhW0dRi7238t82oBXx1e1R1kGDuOmaUNHZ GaJzC+IDT43V+q2zlBIrFHCyrM2DYt9Ln9zLkrhUPYDQia4OEG0= =garA -----END PGP SIGNATURE----- --C5hrS8LzPlYhDf2K--