Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5lyP-00065y-2Q for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2021 08:51:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l5lyN-0004r1-P3 for pgsql-hackers@arkaria.postgresql.org; Sat, 30 Jan 2021 08:51:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5lyN-0004op-1P for pgsql-hackers@lists.postgresql.org; Sat, 30 Jan 2021 08:51:15 +0000 Received: from wforward1-smtp.messagingengine.com ([64.147.123.30]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l5lyH-0005pQ-Id for pgsql-hackers@postgresql.org; Sat, 30 Jan 2021 08:51:13 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id F221BC84; Sat, 30 Jan 2021 03:51:06 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sat, 30 Jan 2021 03:51:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=C63w5+0LC683SlpdldDjj1NtOIakhuyoHYokGCyC9 SM=; b=bu3eDM4D09R/sqGM6adQIZ4H2zVN0KEtwSHfbSprGPT1IqqFGo4+NQcFT m8G/BSj7ZMw2WLddLTl8O4feT0Hpz6YGs3vXB5T6EKYc5OPrSJwDH8LVJrrxopfb WdIPD2UMV9wh7gHYBaK/7A5oNThEXItJEYLDzHqhHzyzdAycIbBTZSeWV7qXtx2Y vaAuRLPhAXDZ+MWkh4cptxGDba+XRxl8Z9EGxd4nD2HW9sJWWpGaCFDjJJppZN5k Bt7SaBas0yhIB4LdhcVhJkyCcZl/X2nBsZCi2bZXlYUQx2ao3ZTpAk0JHrDxVO/h VWGq0plflJXmqFNhdrwyKlB9WqIzw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeefgdduvdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrieelrddugedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b1458c.dip0.t-ipconnect.de [87.177.69.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 251CA1080059; Sat, 30 Jan 2021 03:51:05 -0500 (EST) Subject: Re: Allow CURRENT_ROLE in GRANTED BY To: Simon Riggs References: <2073b6a9-7f79-5a00-5f26-cd19589a52c7@2ndquadrant.com> Cc: Vik Fearing , pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Sat, 30 Jan 2021 09:51:03 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-12-30 13:43, Simon Riggs wrote: > On Thu, 10 Dec 2020 at 18:40, Peter Eisentraut > wrote: >> >> On 2020-06-24 20:21, Peter Eisentraut wrote: >>> On 2020-06-24 10:12, Vik Fearing wrote: >>>> On 6/24/20 8:35 AM, Peter Eisentraut wrote: >>>>> I was checking some loose ends in SQL conformance, when I noticed: We >>>>> support GRANT role ... GRANTED BY CURRENT_USER, but we don't support >>>>> CURRENT_ROLE in that place, even though in PostgreSQL they are >>>>> equivalent. Here is a trivial patch to add that. >>>> >>>> >>>> The only thing that isn't dead-obvious about this patch is the commit >>>> message says "[PATCH 1/2]". What is in the other part? >>> >>> Hehe. The second patch is some in-progress work to add the GRANTED BY >>> clause to the regular GRANT command. More on that perhaps at a later date. >> >> Here is the highly anticipated and quite underwhelming second part of >> this patch set. > > Looks great, but no test to confirm it works. I would suggest adding a > test and committing directly since I don't see any cause for further > discussion. Committed with some tests. Thanks. -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/