Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YELhj-0001mC-Am for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jan 2015 17:38:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YELhi-0005rZ-S6 for pgsql-bugs@arkaria.postgresql.org; Thu, 22 Jan 2015 17:38:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YELhi-0005rS-8a for pgsql-bugs@postgresql.org; Thu, 22 Jan 2015 17:38:02 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1YELhe-0000Xg-SK for pgsql-bugs@postgresql.org; Thu, 22 Jan 2015 17:38:01 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1YELhc-0008J6-IP; Thu, 22 Jan 2015 12:37:56 -0500 Date: Thu, 22 Jan 2015 12:37:56 -0500 From: Bruce Momjian To: Alexey Bashtanov Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9923: "reassign owned" does not change permissions grantor Message-ID: <20150122173756.GG27749@momjian.us> References: <5344F82D.8000809@imap.cc> <20150109181948.GC26812@momjian.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150109181948.GC26812@momjian.us> 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-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Fri, Jan 9, 2015 at 01:19:48PM -0500, Bruce Momjian wrote: > I can confirm this bug report from April, and your analysis of the fixes > --- we were missing calls to aclnewowner() for types, foreign servers, > and foreign data wrappers, for both REASSIGN and ALTER OWNER TO. > > With the attached SQL script you can see the ACL fields properly > changing to match the object owner (attached). Without the patch, only > the table's ACL changes. > > The patch also changes the regression output --- I think that is because > the object ownership changes remove certain duplicates from the ACL > list. Patch applied. Thank you for the excellent bug report. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + Everyone has their own god. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs