pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: carlos.vasquez@clearcorp.co.cr
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #12008: REASSIGN OWNED changes other databases
Date: Thu, 20 Nov 2014 11:06:10 -0300
Message-ID: <20141120140610.GI1639@alvin.alvh.no-ip.org> (raw)
In-Reply-To: <20141119183721.2476.90123@wrigleys.postgresql.org>
References: <20141119183721.2476.90123@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (2+ messages)

Message-ID: <20141120140610.GI1639@alvin.alvh.no-ip.org>
Permalink:  ../20141120140610.GI1639@alvin.alvh.no-ip.org/
Also on:    postgresql.org/message-id/20141120140610.GI1639@alvin.alvh.no-ip.org

 · 

reply

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: alvherre@2ndquadrant.com, carlos.vasquez@clearcorp.co.cr
  Subject: Re: BUG #12008: REASSIGN OWNED changes other databases
  In-Reply-To: <20141120140610.GI1639@alvin.alvh.no-ip.org>
  References: <20141119183721.2476.90123@wrigleys.postgresql.org> <20141120140610.GI1639@alvin.alvh.no-ip.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