Skip site navigation (1) Skip section navigation (2)

Re: new createuser option for replication role

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new createuser option for replication role
Date: 2011-09-10 06:15:15
Message-ID: CAHGQGwGwwreeOzRaLn22yBmBkuk_yjE-ayGbbbrJwj6k6V4HoQ@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
On Sat, Sep 10, 2011 at 2:08 PM, Fujii Masao <masao(dot)fujii(at)gmail(dot)com> wrote:
> Currently createuser cannot create a role with REPLICATION privilege
> because it doesn't have any option to do that. Which sometimes annoys
> me when setting up replication. I'd like to propose to add new options
> "-x (--replication)" and "-X (--no-replication)" into createuser. "-x" allows
> the new user to do replication, and "-X" disallows. The default is "-X".
> Is it worth creating the patch?

Patch attached.

Regards,

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

Attachment: createuser_replication_option_v1.patch
Description: application/octet-stream (3.6 KB)

In response to

pgsql-hackers by date

Next:From: Andres FreundDate: 2011-09-10 08:29:26
Subject: Re: postgresql.conf archive_command example
Previous:From: Magnus HaganderDate: 2011-09-10 05:59:41
Subject: Re: unite recovery.conf and postgresql.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group