setting estate in ExecInitNode() itself - Mailing list pgsql-hackers

From Ashutosh Bapat
Subject setting estate in ExecInitNode() itself
Date
Msg-id CAFjFpRccTimPYT7pdw4Naijd-hCVrb9gyBCdfiBDxr3yrtkPXA@mail.gmail.com
Whole thread Raw
Responses Re: setting estate in ExecInitNode() itself
List 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 by date:

Previous
From: Stephen Frost
Date:
Subject: Re: BUGFIX: standby disconnect can corrupt serialized reorder buffers
Next
From: Stephen Frost
Date:
Subject: Re: [HACKERS] VACUUM and ANALYZE disagreeing on what reltuples means