From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Introduce ExecQualAndReset() helper.
Date: Mon, 29 Jan 2018 20:23:28 +0000
Message-ID: <E1egFxg-000692-3z@gemulon.postgresql.org> (raw)
Introduce ExecQualAndReset() helper.
It's a common task to evaluate a qual and reset the corresponding
expression context. Currently that requires storing the result of the
qual eval, resetting the context, and then reacting on the result. As
that's awkward several places only reset the context next time through
a node. That's not great, so introduce a helper that evaluates and
resets.
It's a bit ugly that it currently uses MemoryContextReset() instead of
ResetExprContext(), but that seems easier than reordering all of
executor.h.
Author: Andres Freund
Discussion: https://postgr.es/m/20180109222544.f7loxrunqh3xjl5f@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/c12693d8f3bbbffcb79f6af476cc647402e1145e
Modified Files
--------------
src/backend/executor/nodeBitmapHeapscan.c | 9 ++-------
src/backend/executor/nodeHash.c | 10 ++--------
src/backend/executor/nodeIndexonlyscan.c | 3 +--
src/backend/executor/nodeIndexscan.c | 11 +++--------
src/include/executor/executor.h | 17 +++++++++++++++++
5 files changed, 25 insertions(+), 25 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: Introduce ExecQualAndReset() helper.
In-Reply-To: <E1egFxg-000692-3z@gemulon.postgresql.org>
References: <E1egFxg-000692-3z@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