Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXn2S-0002vh-ST for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 07:35:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WXn2S-00044i-6P for pgsql-bugs@arkaria.postgresql.org; Wed, 09 Apr 2014 07:35:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXn2Q-000448-Vv for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 07:35:15 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WXn2N-00087u-SF for pgsql-bugs@postgresql.org; Wed, 09 Apr 2014 07:35:13 +0000 Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 86EC52103F for ; Wed, 9 Apr 2014 03:35:10 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Wed, 09 Apr 2014 03:35:10 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=imap.cc; h= message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=mesmtp; bh=vLR/pGvMqgIhJUesMu5QpfO 5Zrs=; b=ZxdhySw1NWG8BvrLghccZmmAIPCzrLYcm77xtCQNXqfhbbBHNWnnmR1 ka73L7KnL0Cqd7meZ9pdcwCQcjd7Bs7ApTnNpYwsIpV3h1Yr9Ckqdc2EPqpNvh1w cXcUOiEyszlGgsty3Zd/jHuySKA0s8s6y2bE14xCdDyjRLUmQ+GU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:content-type:content-transfer-encoding; s=smtpout; bh=v LR/pGvMqgIhJUesMu5QpfO5Zrs=; b=cB7GcBlcFCf1ewE6w1Ow2sHCCDPxuVOLO a4zDcS8yIg8rn+lIItqR6pHBBHL441dRFqyQyuzDdolux7q7DZsye7cSA751tZUj 7qGHTrpkd2crH1p9xK+scIj8faR+E7cr4SnU5n0bJUSwdAPjPFQUvqWt5L+vrim8 ng0NSuqnAs= X-Sasl-enc: 6dUBVqnHdNxHwXRdWJFPw0Q8oGRVaTT/BkoTlNC4lX3H 1397028910 Received: from [192.168.1.23] (unknown [195.91.155.97]) by mail.messagingengine.com (Postfix) with ESMTPA id 207766801E7 for ; Wed, 9 Apr 2014 03:35:10 -0400 (EDT) Message-ID: <5344F82D.8000809@imap.cc> Date: Wed, 09 Apr 2014 11:35:09 +0400 From: Alexey Bashtanov User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #9923: "reassign owned" does not change permissions grantor Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) 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 after a series of tests and source code reading I realized that 1) the bug is not fixed in last git repository version 2) the bug could be reproduced on types and foreign servers, maybe also on foreign data wrappers, triggers, but not on any other objects 3) it does not matter if we assign owner using "reassign owned" or using "alter .. owner to ..." 4) there is a problem on revoking such incorrect grants: a workaround is to reassign back to old owner, then revoke, than reassign once again 5) to fix the bug we need to perform aclnewowner call in AlterForeignServerOwner_internal and AlterTypeOwner (including the typtype == TYPTYPE_COMPOSITE case, cause we pass recursing=true to ATExecChangeOwner) and maybe in AlterForeignDataWrapperOwner_internal and AlterEventTriggerOwner_internal sorry I do not provide the exact patch Regards, Alexey Bashtanov -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs