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

Re: new createuser option for replication role

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new createuser option for replication role
Date: 2011-09-10 14:50:13
Message-ID: 1061.1315666213@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Fujii Masao <masao(dot)fujii(at)gmail(dot)com> writes:
> 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?

Better solution: don't have a short form of the switch.

			regards, tom lane

In response to

Responses

pgsql-hackers by date

Next:From: Alexey KlyukinDate: 2011-09-10 16:39:21
Subject: Re: REVIEW proposal: a validator for configuration files
Previous:From: Marti RaudseppDate: 2011-09-10 12:47:17
Subject: Re: 9.1rc1 bug: extension types not dropped with DROP SCHEMA CASCADE

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