pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow CustomScan providers to say whether they support projectio
Date: Tue, 06 Jul 2021 22:10:28 +0000
Message-ID: <E1m0tGu-0000Gb-Cw@gemulon.postgresql.org> (raw)

Allow CustomScan providers to say whether they support projections.

Previously, all CustomScan providers had to support projections,
but there may be cases where this is inconvenient.  Add a flag
bit to say if it's supported.

Important item for the release notes: this is non-backwards-compatible
since the default is now to assume that CustomScan providers can't
project, instead of assuming that they can.  It's fail-soft, but could
result in visible performance penalties due to adding unnecessary
Result nodes.

Sven Klemm, reviewed by Aleksander Alekseev; some cosmetic fiddling
by me.

Discussion: https://postgr.es/m/CAMCrgp1kyakOz6c8aKhNDJXjhQ1dEjEnp+6KNT3KxPrjNtsrDg@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/955b3e0f9269639fb916cee3dea37aee50b82df0

Modified Files
--------------
doc/src/sgml/custom-scan.sgml           | 13 ++++++++++---
src/backend/executor/execAmi.c          | 17 +++++------------
src/backend/optimizer/plan/createplan.c |  8 ++++++++
src/include/nodes/extensible.h          |  4 +++-
4 files changed, 26 insertions(+), 16 deletions(-)



Message-ID: <E1m0tGu-0000Gb-Cw@gemulon.postgresql.org>
Permalink:  ../E1m0tGu-0000Gb-Cw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m0tGu-0000Gb-Cw@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Allow CustomScan providers to say whether they support projectio
  In-Reply-To: <E1m0tGu-0000Gb-Cw@gemulon.postgresql.org>
  References: <E1m0tGu-0000Gb-Cw@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