From: andres.more@intel.com
To: pgsql-bugs@postgresql.org
Subject: BUG #8719: user creation including role does not work nor complain if in keyword is not specified
Date: Fri, 03 Jan 2014 14:14:20 +0000
Message-ID: <E1Vz5W0-0004FH-3A@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 8719
Logged by: Andres More
Email address: andres.more@intel.com
PostgreSQL version: 9.3.1
Operating system: Amazon RDS
Description:
If I create a new user with an specific role it it not included unless IN is
included. However without IN the statement does not throw an error.
Amazon RDS postgres engine does not offer an admin user, but a light version
called rds_superuser.
CREATE USER sql_ro_user2 WITH ENCRYPTED PASSWORD 'sql_ro_password' ROLE
rds_superuser LOGIN
opscode_chef=> \du
List of roles
Role name | Attributes |
Member of
-----------------+------------------------------------------------+---------------------------------------------------------
opscode_chef | | {}
opscode_chef_ro | | {}
opscodepgsql | Create role, Create DB |
{rds_superuser}
rds_superuser | Cannot login |
{opscode_chef,opscode_chef_ro,sql_ro_user,sql_ro_user2}
rdsadmin | Superuser, Create role, Create DB, Replication | {}
sql_ro_user | | {}
sql_ro_user2 | | {}
CREATE USER sql_ro_user3 WITH ENCRYPTED PASSWORD 'sql_ro_password' IN ROLE
rds_superuser LOGIN
opscode_chef=> \du
List of roles
Role name | Attributes |
Member of
-----------------+------------------------------------------------+---------------------------------------------------------
opscode_chef | | {}
opscode_chef_ro | | {}
opscodepgsql | Create role, Create DB |
{rds_superuser}
rds_superuser | Cannot login |
{opscode_chef,opscode_chef_ro,sql_ro_user,sql_ro_user2}
rdsadmin | Superuser, Create role, Create DB, Replication | {}
sql_ro_user | | {}
sql_ro_user2 | | {}
sql_ro_user3 | |
{rds_superuser}
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: andres.more@intel.com
Subject: Re: BUG #8719: user creation including role does not work nor complain if in keyword is not specified
In-Reply-To: <E1Vz5W0-0004FH-3A@wrigleys.postgresql.org>
References: <E1Vz5W0-0004FH-3A@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox