Do CustomScan as not projection capable node - Mailing list pgsql-hackers

From Andrey Lepikhov
Subject Do CustomScan as not projection capable node
Date
Msg-id 0ab0d931-f7b0-d2bc-3089-1954cc21259e@postgrespro.ru
Whole thread Raw
Responses Re: Do CustomScan as not projection capable node
List pgsql-hackers
Can we include the CustomScan node in the list of nodes that do not 
support projection?
Reason is that custom node can contain quite arbitrary logic that does 
not guarantee projection support.
Secondly. If planner does not need a separate Result node, it just 
assign tlist to subplan (i.e. changes targetlist of custom node) and 
does not change the custom_scan_tlist.
Perhaps I do not fully understand the logic of using the 
custom_scan_tlist field. But if into the PlanCustomPath() routine our 
custom node does not build own custom_scan_tlist (may be it will use 
tlist as base for custom_scan_tlist) we will get errors in the 
set_customscan_references() call.

-- 
Andrey Lepikhov
Postgres Professional
https://postgrespro.com
The Russian Postgres Company

Attachment

pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: bug in update tuple routing with foreign partitions
Next
From: Asim R P
Date:
Subject: Re: standby recovery fails (tablespace related) (tentative patch and discussion)