Martijn van Oosterhout <kleptog(at)svana(dot)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