Re: Additional role attributes && superuser review

Поиск
Список
Период
Сортировка
От Amit Langote
Тема Re: Additional role attributes && superuser review
Дата
Msg-id 567B97C9.1070003@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: Additional role attributes && superuser review  (Stephen Frost <sfrost@snowman.net>)
Ответы Re: Additional role attributes && superuser review  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
Hi,

On 2015/12/23 7:23, Stephen Frost wrote:
> Updated patch attached.  I'll give it another good look and then commit
> it, barring objections.

Just a minor nitpick about a code comment -
    /*
+     * Check that the user is not trying to create a role in the reserved
+     * "pg_" namespace.
+     */
+    if (IsReservedName(stmt->role))

The wording may be slightly confusing, especially saying "... in ...
namespace". ISTM, "namespace" is fairly extensively used around the code
to mean something like "a schema's namespace".

Could perhaps be reworded as:
    /*
+     * Check that the user is not trying to create a role with reserved
+     * name, ie, one starting with "pg_".

If OK, there seems to be one more place further down in the patch with
similar wording.

Thanks,
Amit





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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench - allow backslash-continuations in custom scripts
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: On-demand running query plans using auto_explain and signals