Re: [HACKERS] ExecEvalVar does not have appropriate ExprState?

2011-03-28 Thread Heikki Linnakangas
On 28.03.2011 10:44, Vaibhav Kaushal wrote: Also, I think the similar stands for the Const, Param, CoerceToDomain and CaseTest nodes, right? They too cast the pointer to another type. Yep. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-hackers mailing l

Re: [HACKERS] ExecEvalVar does not have appropriate ExprState?

2011-03-28 Thread Vaibhav Kaushal
Thanks for the confirmation. I am happy to have understood some basics of PG. Also, I think the similar stands for the Const, Param, CoerceToDomain and CaseTest nodes, right? They too cast the pointer to another type. Thanks for the help Heikki. (I could better call you HL, if you dont mind :P )

Re: [HACKERS] ExecEvalVar does not have appropriate ExprState?

2011-03-28 Thread Heikki Linnakangas
On 28.03.2011 10:02, Vaibhav Kaushal wrote: Hi, I see the ExecInitExpr says something like this: case T_Var: state = (ExprState *) makeNode(ExprState); state->evalfunc = ExecEvalVar; --- But the ExecEvalVar function definition says: ---

[HACKERS] ExecEvalVar does not have appropriate ExprState?

2011-03-28 Thread Vaibhav Kaushal
Hi, I see the ExecInitExpr says something like this: case T_Var: state = (ExprState *) makeNode(ExprState); state->evalfunc = ExecEvalVar; --- But the ExecEvalVar function definition says: Var*variable = (Var *) e