pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8719: user creation including role does not work nor complain if in keyword is not specified
2+ messages / 2 participants
[nested] [flat]
* BUG #8719: user creation including role does not work nor complain if in keyword is not specified
@ 2014-01-03 14:14 andres.more@intel.com
2014-01-03 15:54 ` Re: BUG #8719: user creation including role does not work nor complain if in keyword is not specified David Johnston <polobo@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: andres.more@intel.com @ 2014-01-03 14:14 UTC (permalink / raw)
To: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #8719: user creation including role does not work nor complain if in keyword is not specified
2014-01-03 14:14 BUG #8719: user creation including role does not work nor complain if in keyword is not specified andres.more@intel.com
@ 2014-01-03 15:54 ` David Johnston <polobo@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: David Johnston @ 2014-01-03 15:54 UTC (permalink / raw)
To: pgsql-bugs
andres.more wrote
> The following bug has been logged on the website:
>
> Bug reference: 8719
> Logged by: Andres More
> Email address:
> andres.more@
> 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}
Both ROLE and IN ROLE are valid command options for CREATE ROLE. RTFM for
more details. Your example shows that the two commands are working as
expected.
David J.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-8719-user-creation-including-role-does-not-work-nor-comp...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-01-03 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 14:14 BUG #8719: user creation including role does not work nor complain if in keyword is not specified andres.more@intel.com
2014-01-03 15:54 ` David Johnston <polobo@yahoo.com>
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