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: Don't generate EEOP_*_FETCHSOME operations for slots know to be
Date: Mon, 30 Sep 2019 23:07:20 +0000
Message-ID: <E1iF4lE-0007IB-EG@gemulon.postgresql.org> (raw)

Don't generate EEOP_*_FETCHSOME operations for slots know to be virtual.

That avoids unnecessary work during both interpreted execution, and
JIT compiled expression evaluation. Both benefit from fewer expression
steps needing be processed, and for interpreted execution there now is
a fastpath dedicated to just fetching a value from a virtual
slot. That's e.g. beneficial for hashjoins over nodes that perform
projections, as the hashed columns are currently fetched individually.

Author: Soumyadeep Chakraborty, Andres Freund
Discussion: https://postgr.es/m/CAE-ML+9OKSN71+mHtfMD-L24oDp8dGTfaVjDU6U+j+FNAW5kRQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/36d22dd95bc87ca68e742da91f47f8826f8758c9

Modified Files
--------------
src/backend/executor/execExpr.c       |  43 +++++++----
src/backend/executor/execExprInterp.c | 133 +++++++++++++++++++++++++++++++++-
src/backend/jit/llvm/llvmjit_expr.c   |   6 +-
3 files changed, 160 insertions(+), 22 deletions(-)



Message-ID: <E1iF4lE-0007IB-EG@gemulon.postgresql.org>
Permalink:  ../E1iF4lE-0007IB-EG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iF4lE-0007IB-EG@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: Don't generate EEOP_*_FETCHSOME operations for slots know to be
  In-Reply-To: <E1iF4lE-0007IB-EG@gemulon.postgresql.org>
  References: <E1iF4lE-0007IB-EG@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