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 1kGPKY-0006TD-VX for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2020 16:21:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kGPKX-0005vB-OV for pgsql-hackers@arkaria.postgresql.org; Thu, 10 Sep 2020 16:21:49 +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 1kGPKW-0005v4-Jp for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2020 16:21:49 +0000 Received: from [64.147.123.30] (helo=wforward1-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGPKR-0000s8-KM for pgsql-hackers@lists.postgresql.org; Thu, 10 Sep 2020 16:21:47 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id CD353B5A; Thu, 10 Sep 2020 12:21:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 10 Sep 2020 12:21:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm3; bh=QvrmgYZtJOe3CxZziecJLprwVcomi+FnB5V8m5vL4 30=; b=Liq9AHR6waDYii0rjbTThGPwc69SJdZ1iPXENP1c+HVUl0ZCPKw26/DYq kNsHqxH/urLfq1nb5ArEEp2cYfM6S+E8VldMYMyBNDMG9Rr70N9YDF4nx0v1Aotw iBN3NcPhUpkAn6m6QE1nqxV6t8jPnZaNz1Uq1rIqL6NPpc0gQ2eW9UH2v/1W3rai RpbGu76EtCVeHQ3KfNmnHRhFAe0xbvvCCRr/kaqzaVC+dyPfF3q90GtY1zHi6eu3 VPUs2rn6lX6DUkbfqtP0KvLC5PkSDPG4JSAKzk0s0+6cwRM6S1wJLnmBuMONakKl lEOOcazSr6TcV9/iQKMbRb7Te1Hjg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehjedgleegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnheptdevgeehtdejvdevvdel jeeuveejjedtleelgfekleefieekjeelgfektdduuedvnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjeelrdehleenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b14f3b.dip0.t-ipconnect.de [87.177.79.59]) by mail.messagingengine.com (Postfix) with ESMTPA id 6A52F306468E; Thu, 10 Sep 2020 12:21:30 -0400 (EDT) Subject: Re: Allow CURRENT_ROLE in GRANTED BY To: Asif Rehman , pgsql-hackers@lists.postgresql.org References: <159947296972.1157.15288153297863434487.pgcf@coridan.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <7352ff27-72b9-254d-a745-74ea983440fa@2ndquadrant.com> Date: Thu, 10 Sep 2020 18:21:54 +0200 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: <159947296972.1157.15288153297863434487.pgcf@coridan.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.30 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-07 12:02, Asif Rehman wrote: > The following review has been posted through the commitfest application: > make installcheck-world: tested, passed > Implements feature: tested, passed > Spec compliant: tested, passed > Documentation: tested, passed > > The patch applies cleanly and looks fine to me. However wouldn't it be better to just map the CURRENT_ROLE to CURRENT_USER in backend grammar? Existing code treats them differently. I think, given that the code is already written, it is good to preserve what the user wrote. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services