"Roberto Abalde" <roberto.abalde@galego21.org> writes:
> I've found that some two functions in /src/backend/optimizer/plan/planner.c
> have side effects.
No kidding ;-). The planner is full of side-effects on data structures.
Both of the changes you mention are intentional.
regards, tom lane