From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: torcher999@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15281: Set role does not affect superuser privleges
Date: Mon, 16 Jul 2018 18:12:50 -0400
Message-ID: <9786.1531779170@sss.pgh.pa.us> (raw)
In-Reply-To: <cb73d366-5978-7fe3-0d4a-b73d934597d7@2ndquadrant.com>
References: <153175290278.1396.6851104739737410645@wrigleys.postgresql.org>
<cb73d366-5978-7fe3-0d4a-b73d934597d7@2ndquadrant.com>
Tomas Vondra <tomas.vondra@2ndquadrant.com> writes:
> On 07/16/2018 04:55 PM, PG Bug reporting form wrote:
>> Here are the two scenarios I tested:
>> 1) as a session_user: superuser and current_user: non-superuser I can edit
>> others' tables
>> 2) as a session_user: non-superuser and current_user: superuser I cannot
>> edit others' tables
> It's usually a good idea to provide exact scripts / output so that
> people can reproduce the issue easily. For me it behaves like this:
> ...
> So, correct in both cases. I'm not on Windows, but I don't see why would
> it behave differently there.
Tomas' test left out the "GRANT user0 to user1" bit, but I can't
reproduce the behavior as described either.
regards, tom lane
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, tomas.vondra@2ndquadrant.com, torcher999@gmail.com
Subject: Re: BUG #15281: Set role does not affect superuser privleges
In-Reply-To: <9786.1531779170@sss.pgh.pa.us>
References: <153175290278.1396.6851104739737410645@wrigleys.postgresql.org> <cb73d366-5978-7fe3-0d4a-b73d934597d7@2ndquadrant.com> <9786.1531779170@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