pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dmitry Ivanov <d.ivanov@postgrespro.ru>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Possible problem in Custom Scan API
Date: Mon, 17 Apr 2017 15:33:35 -0400
Message-ID: <29429.1492457615@sss.pgh.pa.us> (raw)
In-Reply-To: <e9c265ef-3b63-46bd-8b61-8612f684057e@postgrespro.ru>
References: <e29ddd30-8ef9-4da5-a50b-2bb7b8c7198d@postgrespro.ru>
	<20021.1491933424@sss.pgh.pa.us>
	<1ef85b46-1385-4810-bb80-97cd977da1d5@postgrespro.ru>
	<367.1491940070@sss.pgh.pa.us>
	<f7590622-182b-4362-b148-c21de109ad2a@postgrespro.ru>
	<4509.1491944329@sss.pgh.pa.us>
	<0e0388a6-aa53-42a6-8be9-0d46ccbc788e@postgrespro.ru>
	<8130.1492013026@sss.pgh.pa.us>
	<e9c265ef-3b63-46bd-8b61-8612f684057e@postgrespro.ru>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

Dmitry Ivanov <d.ivanov@postgrespro.ru> writes:
> Tom Lane wrote:
>> I'm coming around to the idea that it'd be better to disable physical
>> tlists for custom scans.
>> However, I'm hesitant to make such a change in the back branches; if
>> there's anyone using custom scans who's negatively affected, they'd be
>> rightfully unhappy.  Are you satisfied if we change this in HEAD?

After thinking about this over the weekend, I've come to the conclusion
that back-patching is probably the right thing anyway.  The upside of the
use_physical_tlist optimization is pretty marginal even when it applies,
while the downsides of applying it inappropriately can be very large,
as we've discussed.

> I've been thinking about this all along, and it seems that this is a decent 
> decision. However, I've made a tiny bugfix patch which allows CustomScans 
> to notify the core code that they can handle physical targetlists. 

I'm unimpressed by this part --- we couldn't back-patch such a change, and
I think it's unnecessary anyway in 9.6+ because the scan provider could
generate a nondefault pathtarget if it wants this to happen.

			regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (12+ messages)  latest in thread

Message-ID: <29429.1492457615@sss.pgh.pa.us>
Permalink:  ../29429.1492457615@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29429.1492457615@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, d.ivanov@postgrespro.ru
  Subject: Re: Possible problem in Custom Scan API
  In-Reply-To: <29429.1492457615@sss.pgh.pa.us>

* 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