From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Perform slot validity checks in a separate pass over expression.
Date: Fri, 29 Dec 2017 20:48:19 +0000
Message-ID: <E1eV1Zj-0001mp-Gx@gemulon.postgresql.org> (raw)
Perform slot validity checks in a separate pass over expression.
This reduces code duplication a bit, but the primary benefit that it
makes JITing expression evaluation easier. When doing so we can't, as
previously done in the interpreted case, really change opcode without
recompiling. Nor dow we just carry around unnecessary branches to
avoid re-checking over and over.
As a minor side-effect this makes ExecEvalStepOp() O(log(N)) rather
than O(N).
Author: Andres Freund
Discussion: https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b40933101ca622aa8a35b6fe07ace36effadf1c7
Modified Files
--------------
src/backend/executor/execExpr.c | 7 +-
src/backend/executor/execExprInterp.c | 277 ++++++++++++++++++----------------
src/include/executor/execExpr.h | 14 +-
src/include/nodes/execnodes.h | 3 +
4 files changed, 165 insertions(+), 136 deletions(-)
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: Perform slot validity checks in a separate pass over expression.
In-Reply-To: <E1eV1Zj-0001mp-Gx@gemulon.postgresql.org>
References: <E1eV1Zj-0001mp-Gx@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