Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ccEGX-00030y-KJ for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Feb 2017 16:41:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ccEGW-0004oo-DR for pgsql-bugs@arkaria.postgresql.org; Fri, 10 Feb 2017 16:41:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ccEFq-00045u-3B for pgsql-bugs@postgresql.org; Fri, 10 Feb 2017 16:41:02 +0000 Received: from mail-qk0-x22e.google.com ([2607:f8b0:400d:c09::22e]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ccEFm-0004rx-Dl for pgsql-bugs@postgresql.org; Fri, 10 Feb 2017 16:41:00 +0000 Received: by mail-qk0-x22e.google.com with SMTP id s140so44879230qke.0 for ; Fri, 10 Feb 2017 08:40:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=G2psLfANMNKvLukAt7AX/x3w1oel/BDs4YV03XRXhjE=; b=v2Wg3fHK+lCa4LHHHFlcIShipHBjMVIWojIwXGfQnE7ln8SyHhrod5JICzAziqKu96 sCk1ST8HH4/KWZyuNGJ/9kvADTl0j0dZa+609x0doJFxU6cjmFZ9qru/zHraUr1e9aIt 1J9CxdlgE4PQdI7wbAwoeDo9AwlkXjg5hjMBvrfJUJzrcazgEPcOMsyJmSS0UTBVw3Oq qMdA2Bpi6G438KCIVP8V5sfs/EKyv3USt9+crZCJyWDEr6r6q3ySz5QvPGpqcND5TI0k eL15Q2xlQFBw7NMTGd5f2nbTEPHvF6YqyPCTXZTTppbxniFF2yU8qe/4ZcJHsBeGHeNi KyZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=G2psLfANMNKvLukAt7AX/x3w1oel/BDs4YV03XRXhjE=; b=oRmEFCQNAEGOZYLWfrbHXnmqM+Mr+u++H9MD5OP+JB/29KYTC/KEL9tjzeVxa96X09 NeEnaUrQdiekEBb6mVWCC89lNL2BKZlazgrYeMqKNqRc1D89PRcZeTyospJv9rR95Xtp DzVeICgznuGaV5YBiv+oedy/bcFptXmytj2oyuu+hqpGSnCaksaDTUQZ9jKjjgq7at+x /eUM2bzo7UsXVMA8j9DqtFGp9/qBfKpGs+ws7pmRUU3n4w1UfmMv+tzK37mO1VzGPp5h fNyzYqpmgJu3keumpQUsNQqJU/RaKu3j3B1ib37/XK38v33MCOgI/KmbHl0O2Tp49mau 20Nw== X-Gm-Message-State: AMke39nOXqlnhNUBcNqOhooGyRO3Jaj+XZwgQSZEiEAlKbE08tcAx5yEgo1gqzPg1WHREphi X-Received: by 10.55.214.207 with SMTP id p76mr9029448qkl.241.1486744857180; Fri, 10 Feb 2017 08:40:57 -0800 (PST) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id j1sm203487qkf.57.2017.02.10.08.40.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Feb 2017 08:40:56 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 5B18FC96; Fri, 10 Feb 2017 13:40:54 -0300 (CLST) Date: Fri, 10 Feb 2017 13:40:54 -0300 From: Alvaro Herrera To: opldupuy@gmail.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14540: REASSIGN OWNED cannot reassign from a USER to a ROLE Message-ID: <20170210164054.vcxz3c3pp52kxv2g@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170210153329.6106.55713@wrigleys.postgresql.org> User-Agent: NeoMutt/20170113 (1.7.2) X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org opldupuy@gmail.com wrote: > I highly suggest extending REASSIGN OWNED to: > - reassign USER resources to ROLE first (current user has to be in the > target role as now) > - reassign USER resources to USER next In Postgres, "users" are just roles. There is no distinction. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, 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