Re: Possible problem in Custom Scan API

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dmitry Ivanov <d(dot)ivanov(at)postgrespro(dot)ru>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Possible problem in Custom Scan API
Date: 2017-04-11 17:57:04
Message-ID: 20021.1491933424@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dmitry Ivanov <d(dot)ivanov(at)postgrespro(dot)ru> writes:
> In theory, CustomScans should be able to use any Plan nodes (i.e.
> 'custom_plans' list), but as far as I can understand, there's no way to
> override behavior of use_physical_tlist(), which means that we might see
> something like this:

> ERROR: variable not found in subplan target list

> if we use child IndexOnlyScan and the index does not include some of the
> relation's columns.

Uh, why would you see that? The planner would never generate an
IndexOnlyScan in the first place if the query required any columns
not available from the index.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2017-04-11 17:57:08 Re: GCC 7 warnings
Previous Message Andrew Borodin 2017-04-11 17:46:57 Re: Merge join for GiST