Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zgujs-0005ZN-SO for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2015 13:14:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zgujr-0007JE-SC for pgsql-bugs@arkaria.postgresql.org; Tue, 29 Sep 2015 13:14:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgujG-0006bp-14 for pgsql-bugs@postgresql.org; Tue, 29 Sep 2015 13:13:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zguj8-0007Uu-Bn for pgsql-bugs@postgresql.org; Tue, 29 Sep 2015 13:13:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8TDDkae029890; Tue, 29 Sep 2015 09:13:47 -0400 From: Tom Lane To: 450019844@qq.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13649: system catalog pg_authid doesn't update automatically In-reply-to: <20150929023515.1454.96656@wrigleys.postgresql.org> References: <20150929023515.1454.96656@wrigleys.postgresql.org> Comments: In-reply-to 450019844@qq.com message dated "Tue, 29 Sep 2015 02:35:15 -0000" Date: Tue, 29 Sep 2015 09:13:46 -0400 Message-ID: <29889.1443532426@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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