Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YEMC7-0002qc-JC for pgsql-committers@arkaria.postgresql.org; Thu, 22 Jan 2015 18:09:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YEMC6-0004Go-Ck for pgsql-committers@arkaria.postgresql.org; Thu, 22 Jan 2015 18:09:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YEMC5-0004Gh-De for pgsql-committers@postgresql.org; Thu, 22 Jan 2015 18:09:25 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YEMBx-0000yt-PK for pgsql-committers@postgresql.org; Thu, 22 Jan 2015 18:09:23 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YEMBw-0001EA-6I; Thu, 22 Jan 2015 13:09:16 -0500 Date: Thu, 22 Jan 2015 13:09:16 -0500 From: Bruce Momjian To: Alvaro Herrera Cc: pgsql-committers@postgresql.org Subject: Re: pgsql: adjust ACL owners for REASSIGN and ALTER OWNER TO Message-ID: <20150122180916.GH27749@momjian.us> References: <20150122175451.GD1663@alvh.no-ip.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150122175451.GD1663@alvh.no-ip.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On Thu, Jan 22, 2015 at 02:54:51PM -0300, Alvaro Herrera wrote: > Bruce Momjian wrote: > > adjust ACL owners for REASSIGN and ALTER OWNER TO > > > > When REASSIGN and ALTER OWNER TO are used, both the object owner and ACL > > list should be changed from the old owner to the new owner. This patch > > fixes types, foreign data wrappers, and foreign servers to change their > > ACL list properly; they already changed owners properly. > > Isn't this a backpatchable bug fix? Uh, I don't think so as it changes _security_ behavior that people might be relying on. The issue is that you might be expecting to keep the same permissions on the old owner and your script might just add the new owner ACL, while the patch removes the old owner's ACL and adds the new user to be consistent with other types. My big question is whether this change is something we would mention as backward incompatible in the 9.5 release notes. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers