Re: pgsql: Fill in no_priv_msg for publications and subscriptions

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Fill in no_priv_msg for publications and subscriptions
Date: 2017-01-27 13:57:07
Message-ID: 1eaee423-9eaa-23f3-b1ca-4531905c30a2@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

On 1/26/17 4:46 PM, Alvaro Herrera wrote:
> Peter Eisentraut wrote:
>> Fill in no_priv_msg for publications and subscriptions
>>
>> Even though these messages are not used yet, we should keep the list
>> complete.
>
> Hmm, should we add a StaticAssert() somewhere that lengthof(msg_no_priv)
> is somehow consistent with the AclObjectKind enum? Probably in
> aclcheck_error() itself.

Maybe, but I think it's not that important, because an actual test of
the permissions will easily show when something is missing or wrong.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-01-27 14:09:10 Re: pgsql: Fill in no_priv_msg for publications and subscriptions
Previous Message Tom Lane 2017-01-27 13:34:11 pgsql: Orthography fixes for new castNode() macro.