Re: A modest proposal: make parser/rewriter/planner inputs read-only

Поиск
Список
Период
Сортировка
От Andrei Lepikhov
Тема Re: A modest proposal: make parser/rewriter/planner inputs read-only
Дата
Msg-id 869744ec-4372-41c0-8fbd-4523f5d6dc93@gmail.com
обсуждение исходный текст
Ответ на A modest proposal: make parser/rewriter/planner inputs read-only  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: A modest proposal: make parser/rewriter/planner inputs read-only
Список pgsql-hackers
On 4/5/25 18:46, Tom Lane wrote:
> I'm not planning to pursue this idea Right Now, but it seems like
> something that could happen for v19 or so.  In the meantime I wanted
> to get the ideas down on electrons.
> 
> Thoughts?
I generally like the idea because, for now, I need to be sure that no 
one touched the parse tree before copying it to do additional 
transformations before the optimisation phase.
But what is the way you are proposing here? Do you mean that one more 
entity will be explicitly introduced: a transformed parse tree?
It would open an opportunity for extensions to build a set of 
alternative transformed trees, pass them through the optimisation phase 
and choose the best plan.

-- 
regards, Andrei Lepikhov



В списке pgsql-hackers по дате отправления: