Re: Optimizer questions

Поиск
Список
Период
Сортировка
От Konstantin Knizhnik
Тема Re: Optimizer questions
Дата
Msg-id 568CF784.8070609@postgrespro.ru
обсуждение исходный текст
Ответ на Re: Optimizer questions  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
On 01/06/2016 12:03 PM, David Rowley wrote:
Konstantin, are you thinking of looking into this more, with plans to implement code to improve this?


I am not familiar with PostgreSQL optimizer, but I now looking inside its code and trying to find a way to fix this problem.
But if there is somebody is familar with optimizer and already knows solution, please let me know so that I do no spend time on this.

Actually I expect that most of the logic is already present in optimizer: there are several places where it is considered where and how to evaluate tlist.
For example, there are functions use_physical_tlist/disuse_physical_tlist which triggers whether the relation targetlist or only those Vars actually needed by the query. Not sure that that them are related to this particular case...

So most likely it will be enough to insert just one function call is the proper place, but it is necessary to find the function and the place;)


--
 David Rowley                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Proposal: SET ROLE hook
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Optimization for updating foreign tables in Postgres FDW