setting estate in ExecInitNode() itself

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема setting estate in ExecInitNode() itself
Дата
Msg-id CAFjFpRccTimPYT7pdw4Naijd-hCVrb9gyBCdfiBDxr3yrtkPXA@mail.gmail.com
обсуждение исходный текст
Ответы Re: setting estate in ExecInitNode() itself
Список pgsql-hackers
Hi,
Looking at ExecInitXYZ() functions, we can observe that every such
function has a statement like

XYZstate->ps.state = estate;

where it saves estate in the PlanState.

I am wondering why don't we instead save estate in ExecInitNode() itself like

result->estate = estate;

Are there any cases when a node wants to set a different estate there?
-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: BUGFIX: standby disconnect can corrupt serialized reorder buffers
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: [HACKERS] VACUUM and ANALYZE disagreeing on what reltuples means