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

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: new createuser option for replication role
Date: 2011-09-10 05:08:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

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?

Though I'd like to use "-r" and "-R" as the option name, they have already
been used for CREATEROLE privilege. So I'm thinking to use "-x" and
"-X" derived from XLOG. But does anyone have better option name?


Fujii Masao
NTT Open Source Software Center


pgsql-hackers by date

Next:From: Magnus HaganderDate: 2011-09-10 05:59:41
Subject: Re: unite recovery.conf and postgresql.conf
Previous:From: Bruce MomjianDate: 2011-09-10 03:34:45
Subject: Re: superusers are members of all roles?

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