Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 36DA11337990 for ; Sun, 28 Nov 2010 12:47:00 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 88820-10 for ; Sun, 28 Nov 2010 16:46:53 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id BCDDD1336FA7 for ; Sun, 28 Nov 2010 12:46:52 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oASGkpcE022067; Sun, 28 Nov 2010 11:46:51 -0500 (EST) To: Robert Haas cc: Kaiting Chen , pgsql-bugs@postgresql.org Subject: Re: BUG #5763: pg_hba.conf not honored In-reply-to: References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org> <8761.1290526183@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Sun, 28 Nov 2010 07:56:37 -0500" Date: Sun, 28 Nov 2010 11:46:51 -0500 Message-ID: <22066.1290962811@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/195 X-Sequence-Number: 28775 Robert Haas writes: > On Tue, Nov 23, 2010 at 10:29 AM, Tom Lane wrote: >> I believe the definition of "in role" we use here is "has the privileges >> of role".  Since kaiting.chen is a superuser, all privilege tests will >> succeed for him, including that one.  IOW, a superuser is automatically >> a member of every role.  This isn't a bug. > I guess it's not a bug if we did it that way on purpose, but it seems > like testing for actual group membership would be less surprising. Then you'd have superusers acting like they were group members for some purposes and not others. Not sure how that would be less surprising. regards, tom lane