pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Kaiting Chen <kaitocracy@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5763: pg_hba.conf not honored
Date: Sun, 28 Nov 2010 11:46:51 -0500
Message-ID: <22066.1290962811@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTik1TCt3oX=cUZ0UiqAe2XdeDc5uX18z4xCFsqgx@mail.gmail.com>
References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org>
	<8761.1290526183@sss.pgh.pa.us>
	<AANLkTik1TCt3oX=cUZ0UiqAe2XdeDc5uX18z4xCFsqgx@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, Nov 23, 2010 at 10:29 AM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (6+ messages)  latest in thread

Message-ID: <22066.1290962811@sss.pgh.pa.us>
Permalink:  ../22066.1290962811@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22066.1290962811@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, kaitocracy@gmail.com
  Subject: Re: BUG #5763: pg_hba.conf not honored
  In-Reply-To: <22066.1290962811@sss.pgh.pa.us>
  References: <201011230834.oAN8YJkI016093@wwwmaster.postgresql.org> <8761.1290526183@sss.pgh.pa.us> <AANLkTik1TCt3oX=cUZ0UiqAe2XdeDc5uX18z4xCFsqgx@mail.gmail.com> <22066.1290962811@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox