pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #12008: REASSIGN OWNED changes other databases
2+ messages / 2 participants
[nested] [flat]
* BUG #12008: REASSIGN OWNED changes other databases
@ 2014-11-19 18:37 carlos.vasquez@clearcorp.co.cr
0 siblings, 1 reply; 2+ messages in thread
From: carlos.vasquez@clearcorp.co.cr @ 2014-11-19 18:37 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 12008
Logged by: Carlos Vásquez
Email address: carlos.vasquez@clearcorp.co.cr
PostgreSQL version: 9.3.5
Operating system: Ubuntu 14.04
Description:
Bug explained in stackoverflow
(http://stackoverflow.com/questions/27003415/postgres-reassign-owned-for-only-1-database).
I am using package 9.3.5-0ubuntu0.14.04.1 in ubuntu 14.04 without any
modification.
If I have multiple databases owned by user1 and I run REASSIGN OWNED BY
user1 TO user2; in 1 specific database, the command also changes the owner
of the other databases that user1 owns. This affects only the databases, not
the objects inside. Only the objects in the open database get changed to
user2 as it should be.
--
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 #12008: REASSIGN OWNED changes other databases
@ 2014-11-20 14:06 Alvaro Herrera <alvherre@2ndquadrant.com>
parent: carlos.vasquez@clearcorp.co.cr
0 siblings, 0 replies; 2+ messages in thread
From: Alvaro Herrera @ 2014-11-20 14:06 UTC (permalink / raw)
To: carlos.vasquez@clearcorp.co.cr; +Cc: pgsql-bugs
carlos.vasquez@clearcorp.co.cr wrote:
> Bug explained in stackoverflow
> (http://stackoverflow.com/questions/27003415/postgres-reassign-owned-for-only-1-database).
>
> I am using package 9.3.5-0ubuntu0.14.04.1 in ubuntu 14.04 without any
> modification.
>
> If I have multiple databases owned by user1 and I run REASSIGN OWNED BY
> user1 TO user2; in 1 specific database, the command also changes the owner
> of the other databases that user1 owns. This affects only the databases, not
> the objects inside. Only the objects in the open database get changed to
> user2 as it should be.
Yeah, the manual documents that this is what happens. Is this a
problem? Why? I guess if there's a valid use case for not changing
global objects we could have a flag that only local objects are
affected.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
--
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-11-20 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-11-19 18:37 BUG #12008: REASSIGN OWNED changes other databases carlos.vasquez@clearcorp.co.cr
2014-11-20 14:06 ` Alvaro Herrera <alvherre@2ndquadrant.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