Re: new createuser option for replication role

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема Re: new createuser option for replication role
Дата
Msg-id CAHGQGwGoBseB-XZGgYqT5_Pv5U-PotUOqeLysj8K+ggo2bGSmg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: new createuser option for replication role  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
Ответы Re: new createuser option for replication role
Список pgsql-hackers
On Thu, Sep 22, 2011 at 10:55 PM, Cédric Villemain
<cedric.villemain.debian@gmail.com> wrote:
> Before doing the complete review, I hit a regression with 9.1 createrole.

Thanks!

> the command ''createuser -e -s foo" produce :
>  CREATE ROLE foo SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN NOREPLICATION;
>
> before it was:
>  CREATE ROLE foo SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN;
>
> The REPLICATION was allowed by default to superuser, and the current
> patch change the default to remove the right.
>
> I believe we should add only the REPLICATION when --replication is
> set, and NOREPLICATION when --no-replication is set.

Agreed. Attached is the updated version of the patch. It adds two options
--replication and --no-replication. If neither specified, neither REPLICATION
nor NOREPLICATION is specified in CREATE ROLE, i.e., in this case,
replication privilege is granted to only superuser.

Regards,

--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [v9.2] make_greater_string() does not return a string in some cases
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: EXPLAIN and nfiltered, take two