From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Gurjeet Singh <singh.gurjeet@gmail.com>
Cc: PGSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: superuser unable to modify settings of a system table
Date: Fri, 04 Jun 2010 17:13:34 -0400
Message-ID: <23774.1275686014@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTimfyESGnAgvsLZVgPXnWT8-YcDMQzBVsrmW9QzP@mail.gmail.com>
References: <AANLkTikMyIgws7xbwSzt9aXbdZynDqvVoubH6MG_wJBP@mail.gmail.com>
<6649.1275584543@sss.pgh.pa.us>
<AANLkTilTjK0E0w_mWlT54vAn50i_JXW1idTVc-yA8aQg@mail.gmail.com>
<7060.1275585689@sss.pgh.pa.us>
<AANLkTimK0wRwr42tDQfF6N4QzdxdAaCF6pCQH_jsxYje@mail.gmail.com>
<23387.1275684816@sss.pgh.pa.us>
<AANLkTimfyESGnAgvsLZVgPXnWT8-YcDMQzBVsrmW9QzP@mail.gmail.com>
Robert Haas <robertmhaas@gmail.com> 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
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, robertmhaas@gmail.com, singh.gurjeet@gmail.com
Subject: Re: superuser unable to modify settings of a system table
In-Reply-To: <23774.1275686014@sss.pgh.pa.us>
References: <AANLkTikMyIgws7xbwSzt9aXbdZynDqvVoubH6MG_wJBP@mail.gmail.com> <6649.1275584543@sss.pgh.pa.us> <AANLkTilTjK0E0w_mWlT54vAn50i_JXW1idTVc-yA8aQg@mail.gmail.com> <7060.1275585689@sss.pgh.pa.us> <AANLkTimK0wRwr42tDQfF6N4QzdxdAaCF6pCQH_jsxYje@mail.gmail.com> <23387.1275684816@sss.pgh.pa.us> <AANLkTimfyESGnAgvsLZVgPXnWT8-YcDMQzBVsrmW9QzP@mail.gmail.com> <23774.1275686014@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