pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org, pgsql-hackers@postgresql.org, Robert Haas <robertmhaas@gmail.com>
To: Kohei KaiGai <kaigai@kaigai.gr.jp>
Subject: Re: pgsql: Do execGrouping.c via expression eval machinery, take two.
Date: Fri, 16 Feb 2018 16:03:37 -0800
Message-ID: <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de> (raw)
In-Reply-To: <E1emoo3-000254-Gg@gemulon.postgresql.org>
References: <E1emoo3-000254-Gg@gemulon.postgresql.org>

Hi,

On 2018-02-16 22:48:39 +0000, Andres Freund wrote:
> Do execGrouping.c via expression eval machinery, take two.
> 
> This has a performance benefit on own, although not hugely so. The
> primary benefit is that it will allow for to JIT tuple deforming and
> comparator invocations.
> 
> Large parts of this were previously committed (773aec7aa), but the
> commit contained an omission around cross-type comparisons and was
> thus reverted.
> 
> Author: Andres Freund
> Discussion: https://postgr.es/m/20171129080934.amqqkke2zjtekd4t@alap3.anarazel.de

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?

Greetings,

Andres Freund




view thread (6+ messages)  latest in thread

Message-ID: <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de>
Permalink:  ../20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, robertmhaas@gmail.com, kaigai@kaigai.gr.jp
  Subject: Re: pgsql: Do execGrouping.c via expression eval machinery, take two.
  In-Reply-To: <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de>
  References: <E1emoo3-000254-Gg@gemulon.postgresql.org> <20180217000337.lfsdvro3l6ccsksp@alap3.anarazel.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox