Re: superuser() shortcuts - Mailing list pgsql-hackers

From Stephen Frost
Subject Re: superuser() shortcuts
Date
Msg-id 20141028135525.GP28859@tamriel.snowman.net
Whole thread Raw
In response to Re: superuser() shortcuts  (Andres Freund <andres@2ndquadrant.com>)
List pgsql-hackers
* Andres Freund (andres@2ndquadrant.com) wrote:
> For one I'm less than convinced that the new messages are an
> improvement. They seem to be more verbose without a corresponding
> improvement in clarity.

The goal with the changes is to improve consistency of messaging.  These
messages are not at all consistent today.  Personally, I like the idea
of being clear in the main errmsg() that these are permission denied
errors, but we could go the other way and change all the existing
messages which say 'permission denied' to only say 'you have to be
superuser or have X' instead and expect folks to realize it's a
permission denied error from the SQL error code..

> For another I don't see any need to rush this into 9.4.

Ok.
Thanks!
    Stephen

pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [WIP Patch] Using 128-bit integers for sum, avg and statistics aggregates
Next
From: Andres Freund
Date:
Subject: Re: [WIP Patch] Using 128-bit integers for sum, avg and statistics aggregates