pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n
Date: Sat, 03 Nov 2018 23:08:24 +0000
Message-ID: <E1gJ51k-0002sM-E9@gemulon.postgresql.org> (raw)

Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when nargs == 0.

This only became a problem with 4c640f4f38, which didn't synchronize
the value agg_strict_input_check.nargs is set to, with the guard
condition for emitting the operation.

Besides such instructions being unnecessary overhead, currently the
LLVM JIT provider doesn't support them. It seems more sensible to
avoid generating such instruction than supporting them. Add assertions
to make it easier to debug a potential further occurance.

Discussion: https://postgr.es/m/2a505161-2727-2473-7c46-591ed108ac52@email.cz
Backpatch: 11-, like 4c640f4f38.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/793beab37e8f7ec6a4ef39395c6c866d7e4c7af5

Modified Files
--------------
src/backend/executor/execExpr.c     | 2 +-
src/backend/jit/llvm/llvmjit_expr.c | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1gJ51k-0002sM-E9@gemulon.postgresql.org>
Permalink:  ../E1gJ51k-0002sM-E9@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gJ51k-0002sM-E9@gemulon.postgresql.org

 · 

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
  Subject: Re: pgsql: Prevent generating EEOP_AGG_STRICT_INPUT_CHECK operations when n
  In-Reply-To: <E1gJ51k-0002sM-E9@gemulon.postgresql.org>
  References: <E1gJ51k-0002sM-E9@gemulon.postgresql.org>

* 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