Re: [HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Martijn van Oosterhout
On Tue, Sep 06, 2005 at 01:51:25PM -0400, Tom Lane wrote: > Grepping for "makeNode(OpExpr)" might help you. Offhand I'd finger > eval_const_expressions as the likely culprit. clauses.c has some other > code you'd better look at too. Yeah, eval_const_expressions was the culprit in this case, thou

Re: [HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Tom Lane
Martijn van Oosterhout writes: > grep reveals several places where new nodes are created but rather than > just changing them all, is there a particular phase where these changes > are made that I should be looking at? Grepping for "makeNode(OpExpr)" might help you. Offhand I'd finger eval_const

Re: [HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Alvaro Herrera
On Tue, Sep 06, 2005 at 06:06:49PM +0200, Martijn van Oosterhout wrote: > [Please CC any replies, thanks] > > I added a field to each of Var, Const, FuncExpr and OpExpr which is set > during parse_expr. But somewhere between the parsing and execution the > values of these fields get reset back to

[HACKERS] Mysteriously lost values in nodes

2005-09-06 Thread Martijn van Oosterhout
[Please CC any replies, thanks] I added a field to each of Var, Const, FuncExpr and OpExpr which is set during parse_expr. But somewhere between the parsing and execution the values of these fields get reset back to NULL. But only for FuncExpr and OpExpr, for Var and Const it all works as expected