Re: Mysteriously lost values in nodes - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Mysteriously lost values in nodes
Date
Msg-id 19257.1126029085@sss.pgh.pa.us
Whole thread Raw
In response to Mysteriously lost values in nodes  (Martijn van Oosterhout <kleptog@svana.org>)
Responses Re: Mysteriously lost values in nodes
List pgsql-hackers
Martijn van Oosterhout <kleptog@svana.org> 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_expressions as the likely culprit.  clauses.c has some other
code you'd better look at too.

Personally, when I want to add a field to a node, I grep for every
reference to one or two of the existing fields to make sure I've found
all the places I need to touch.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Attention PL authors: want to be listed in template table?
Next
From: Tom Lane
Date:
Subject: Re: Attention PL authors: want to be listed in template table?