Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 8E1B36328BD for ; Fri, 4 Jun 2010 18:13:44 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 20289-08 for ; Fri, 4 Jun 2010 21:13:36 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 2BEFE6323D1 for ; Fri, 4 Jun 2010 18:13:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o54LDYYi023775; Fri, 4 Jun 2010 17:13:34 -0400 (EDT) To: Robert Haas cc: Gurjeet Singh , PGSQL Bugs Subject: Re: superuser unable to modify settings of a system table In-reply-to: References: <6649.1275584543@sss.pgh.pa.us> <7060.1275585689@sss.pgh.pa.us> <23387.1275684816@sss.pgh.pa.us> Comments: In-reply-to Robert Haas message dated "Fri, 04 Jun 2010 17:04:41 -0400" Date: Fri, 04 Jun 2010 17:13:34 -0400 Message-ID: <23774.1275686014@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/70 X-Sequence-Number: 27031 Robert Haas writes: > Is there really a use case for users fiddling with pg_proc, pg_class, > etc. directly? There's a use case for *superusers* to fiddle with them, yes. (Superusers are presumed to be adults.) I think I recommend a quick UPDATE on some catalog at least once a month on the lists. You might care to consider the fact that no modern Unix system prevents root from doing rm -rf /, even though that's "obviously" disastrous. Yet (stretching the analogy all out of shape) there's no convenient user tool for rearranging the contents of all the inodes on a filesystem. > At any rate, I'd be happy to drop that part of the proposal. It would > be a step forward just to permit (even without > allow_system_table_mods) those changes which don't alter the structure > of the catalog. For ALTER TABLE, the SET STATISTICS, (RE)SET > (attribute_option), SET STORAGE, CLUSTER ON, SET WITHOUT CLUSTER, and > (RE)SET (reloptions) forms are all things that fall into this > category, I believe. It would be far less work to just drop allow_system_table_mods to SUSET. And we wouldn't get questions about which forms of ALTER TABLE require it. regards, tom lane