From: Tom Lane <tgl@sss.pgh.pa.us>
To: 450019844@qq.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13649: system catalog pg_authid doesn't update automatically
Date: Tue, 29 Sep 2015 09:13:46 -0400
Message-ID: <29889.1443532426@sss.pgh.pa.us> (raw)
In-Reply-To: <20150929023515.1454.96656@wrigleys.postgresql.org>
References: <20150929023515.1454.96656@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
450019844@qq.com writes:
> step1:revoke "postgres" database user's superuser privilege.
That's not particularly a supported operation...
> step2:excute query "select relacl from pg_class where relname='pg_authid';"
> the query result is "{postgres=arwdDxt/postgres}"
> here it says "postgres" database user still has the update privilege ,but in
> fact it can't.
There's an additional security filter, independent of granted privileges,
that says that only superusers can directly update system catalogs.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, 450019844@qq.com
Subject: Re: BUG #13649: system catalog pg_authid doesn't update automatically
In-Reply-To: <29889.1443532426@sss.pgh.pa.us>
References: <20150929023515.1454.96656@wrigleys.postgresql.org> <29889.1443532426@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