Re: DROP OWNED again

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DROP OWNED again
Дата
Msg-id 13652.1132361944@sss.pgh.pa.us
обсуждение исходный текст
Ответ на DROP OWNED again  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Ответы Re: DROP OWNED again  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-patches
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
>   /*
> !  * Called to execute the utility commands GRANT and REVOKE.
> !  *
> !  * stmt may be a complete GrantStmt created by the parser, or it may be
> !  * missing the "objects" list and the "grantees" list.  In this case,
> !  * they are taken from the second and third parameters, respectively.
>    */
>   void
> ! ExecuteGrantStmt(GrantStmt *stmt, Oid object, Oid grantee)

This seems like a really ugly API.  What's so hard about expecting the
caller to construct a valid GrantStmt?

(I get the impression from a quick scan of the code that the comment
is a long way from telling the truth about what's really happening,
either.)


> + static void AlterConversionOwner_int(Relation rel, Oid conversionOid,
> +                                      Oid newOwnerId);

If these are supposed to mean "AlterConversionOwner_internal", please
spell them that way.  Sitting beside "AlterConversionOwner_oid", it
sure looks like the "int" is meant to be read as "integer".


            regards, tom lane

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: drop if exists - first piece
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: drop if exists - first piece