Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoMvu-0006fo-Mn for pgsql-committers@arkaria.postgresql.org; Wed, 21 Feb 2018 05:27:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eoMvs-0003Uk-Kn for pgsql-committers@arkaria.postgresql.org; Wed, 21 Feb 2018 05:27:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eoMvs-0003UX-5Q; Wed, 21 Feb 2018 05:27:08 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eoMvk-0000hj-EG; Wed, 21 Feb 2018 05:27:06 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7ABC920B94; Wed, 21 Feb 2018 00:26:58 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 21 Feb 2018 00:26:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=gIe/dLZNW85J/YSa36ePpImm2K+8H exAvSxgP5Rkm+4=; b=g1YI9JivZ1wz5yz2eX8WAIjLL47Zmn91CJW3VLJp8HOz5 98NCnQQLDTVK+wIGIMOLYOoskHhR7hMXJgs8suOuiXWsjgu7UESojsaMqYIlZ24T ZYKWyPnVawY3MhqMAS847xlnh9QeYQE25JBjdw4eALr5rrxlCzJ2AiGnV2OHvNbz cHObeM5nQmCTvaNjuW+V38AO4UP+BxBsyaL6830wdgIF8n2cOVqad4wlXPvA1P0x kRMRBLsZ758ocxrFWGIwaW/UMm91t1J8BCRyL28FOqXL7p5E0SLwgpZECPk6IC9v HuuF+mboGsMDitNuZZCHz+zFsXNIhtjne0RhEzFDA== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 2F91A7E0ED; Wed, 21 Feb 2018 00:26:58 -0500 (EST) Date: Tue, 20 Feb 2018 21:26:57 -0800 From: Andres Freund To: pgsql-committers@postgresql.org, pgsql-hackers@postgresql.org, Robert Haas , Kohei KaiGai Subject: Re: pgsql: Do execGrouping.c via expression eval machinery, take two. Message-ID: <20180221052657.qmnysifmzref7okz@alap3.anarazel.de> References: <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-02-16 16:03:37 -0800, Andres Freund wrote: > This triggered a failure on rhinoceros, in the sepgsql test: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2018-02-16%2023%3A45%3A02 > > The relevant diff is: > + LOG: SELinux: allowed { execute } scontext=unconfined_u:unconfined_r:sepgsql_regtest_superuser_t:s0-s0:c0.c255 tcontext=system_u:object_r:sepgsql_proc_exec_t:s0 tclass=db_procedure name="pg_catalog.int4eq(integer,integer)" > and that's because we now invoke the function access hook for grouping > equal, which we previously didn't. > > I personally think the new behaviour makes more sense, but if somebody > wants to argue differently? The only argument against I can see is that > there's some other cases where also don't yet invoke it, but that seems > weak. > > I never fully grasped the exact use-case for the function execute hook > is, so maybe Kaigai and/or Robert could comment? Fixed by adjusting the test output: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2018-02-21%2002%3A45%3A01 Greetings, Andres Freund