From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Initialize ExprStates once in run-time partition pruning
Date: Tue, 24 Apr 2018 17:04:06 +0000
Message-ID: <E1fB1MM-00013w-Mg@gemulon.postgresql.org> (raw)
Initialize ExprStates once in run-time partition pruning
Instead of doing ExecInitExpr every time a Param needs to be evaluated
in run-time partition pruning, do it once during run-time pruning
set-up and cache the exprstate in PartitionPruneContext, saving a lot of
work.
Author: David Rowley
Reviewed-by: Amit Langote, Álvaro Herrera
Discussion: https://postgr.es/m/CAKJS1f8-x+q-90QAPDu_okhQBV4DPEtPz8CJ=m0940GyT4DA4w@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/1957f8dabf8daa29c78d05f971dd665c9680a754
Modified Files
--------------
src/backend/executor/execPartition.c | 35 +++++++++++++++++++++++++++++++++++
src/backend/partitioning/partprune.c | 27 +++++++++++++++++----------
src/include/partitioning/partprune.h | 9 +++++++++
3 files changed, 61 insertions(+), 10 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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Initialize ExprStates once in run-time partition pruning
In-Reply-To: <E1fB1MM-00013w-Mg@gemulon.postgresql.org>
References: <E1fB1MM-00013w-Mg@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