Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YRpEY-0007o8-D8 for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 21:47:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YRpEX-0008PT-C4 for pgsql-hackers@arkaria.postgresql.org; Sat, 28 Feb 2015 21:47:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRpEV-0008PM-P1 for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 21:47:35 +0000 Received: from mout.gmx.net ([212.227.17.21]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YRpER-00065u-6Z for pgsql-hackers@postgresql.org; Sat, 28 Feb 2015 21:47:34 +0000 Received: from auth1-smtp.messagingengine.com ([66.111.4.227]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Md31i-1Y9k7G1Lb0-00IFBN for ; Sat, 28 Feb 2015 22:47:28 +0100 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id E59392098B for ; Sat, 28 Feb 2015 16:47:25 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Sat, 28 Feb 2015 16:47:26 -0500 X-Sasl-enc: FkCv86UOL3EreCxI6Fbu/NdFxfFMeTVtrMZuCsR2XF6s 1425160046 Received: from [10.0.0.36] (unknown [67.165.24.246]) by mail.messagingengine.com (Postfix) with ESMTPA id 876D0C0029D; Sat, 28 Feb 2015 16:47:26 -0500 (EST) Message-ID: <54F2376E.9080501@gmx.net> Date: Sat, 28 Feb 2015 16:47:26 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Stephen Frost CC: Adam Brightwell , Noah Misch , Tom Lane , PostgreSQL Hackers Subject: Re: CATUPDATE confusion? References: <20141227080926.GA2035611@tornado.leadboat.com> <20141227151034.GU3062@tamriel.snowman.net> <28382.1419703324@sss.pgh.pa.us> <20141227231829.GX3062@tamriel.snowman.net> <1952.1419722762@sss.pgh.pa.us> <20141227233150.GA2046947@tornado.leadboat.com> <54E65000.8030304@gmx.net> <20150225203955.GY29780@tamriel.snowman.net> <54EE8C6E.8090506@gmx.net> <20150226030541.GG29780@tamriel.snowman.net> In-Reply-To: <20150226030541.GG29780@tamriel.snowman.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:2yu+g89KGqJzZNiN7i9c/S9uCEyoWK0IcDaSPXiA8aJrno5XaSS 7KevS4r736ay4m1MDuT91byr1fDWMlsPpyvBnQfT6/C1S+nIJ8j4AvO2IemYXZlU3n2n+Di 3AZ005qdALzLFxOqvjcf9PPviMF30NzEE/gIgnq9Qqx8VQvDVTnzzAGMOqz2gXT4+81MwoR PxCITxeei4Bp61z2gn1NA== X-UI-Out-Filterresults: notjunk:1; X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2/25/15 10:05 PM, Stephen Frost wrote: > * Peter Eisentraut (peter_e@gmx.net) wrote: >> On 2/25/15 3:39 PM, Stephen Frost wrote: >>>> I'd get rid of that whole check, not just replace rolcatupdate by rolsuper. >>> >>> Err, wouldn't this make it possible to grant normal users the ability to >>> modify system catalogs? I realize that they wouldn't have that >>> initially, but I'm not sure we want the superuser to be able to grant >>> that to non-superusers.. >> >> Why not? I thought we are trying to get rid of special superuser behavior. > > Agreed, but I'd also like to get rid of any reason, beyond emergency > cases, for people to modify the catalog directly. There's a few places > which we aren't yet doing that, but I'd rather fix those cases than > encourage people to give out rights to modify them and end up making > things like: > > "UPDATE pg_database SET datallowconn = false where datname = 'xyz';" > > an accepted interface. I'm not sure those things are related. Getting rid of the *reasons* for updating catalogs directly might be worthwhile, but I don't see why we need to install (or maintain) a special invisible permission trap for it. We have a permission system, and it works pretty well. The Unix kernels don't have special traps for someone to modify /etc/shadow or similar directly. That file has appropriate permissions, and that's it. I think that works pretty well. -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers