From: Stephen Frost <sfrost@snowman.net>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Handle policies during DROP OWNED BY
Date: Sat, 12 Dec 2015 16:35:32 -0500
Message-ID: <20151212213532.GX3685@tamriel.snowman.net> (raw)
In-Reply-To: <566C82B4.5050000@gmx.net>
References: <E1a7Uzh-0005GQ-Dw@gemulon.postgresql.org>
<566C82B4.5050000@gmx.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
* Peter Eisentraut (peter_e@gmx.net) wrote:
> On 12/11/15 4:12 PM, Stephen Frost wrote:
> > As with ACLs, the DROP OWNED BY caller must have permission to modify
> > the policy or a WARNING is thrown and no change is made to the policy.
>
> That warning doesn't tell the user anything about how to fix the
> situation or whether or why the situation is a problem and what to do
> about it.
I modeled it after the other warnings which are output by DROP OWNED BY
when it's unable to perform the requested drop. I'm not against trying
to add something, but you tend to get a bunch of those messages at once
which means having a hint would result in a bunch of repeated messages
and I don't think that'd be very helpful. Further, it's essentially a
'permission denied' type of error, which generally means that the
individual who is running it can't do anything to fix it anyway.
I'm not against looking to improve things here, but I don't think just
trying to make a change here makes sense. We could throw a warning+hint
at the end of DROP OWNED, if anything wasn't able to be dropped, which
provided more information, perhaps. I'm not convinced that would really
be very useful to the individual running the command and would need to,
in essence, be "please get someone with higher privileges to run this,
or get them to give you permission to run it". I don't think we really
want to go there (anyone else recall the "please see your network
administrator" errors..?).
If I'm misunderstanding your thoughts here, please let me know.
Thanks!
Stephen
Attachments:
signature.asc (application/pgp-signature, 818B) download
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-committers@postgresql.org
Cc: sfrost@snowman.net, peter_e@gmx.net, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Handle policies during DROP OWNED BY
In-Reply-To: <20151212213532.GX3685@tamriel.snowman.net>
References: <E1a7Uzh-0005GQ-Dw@gemulon.postgresql.org> <566C82B4.5050000@gmx.net> <20151212213532.GX3685@tamriel.snowman.net>
* 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