"Roberto Abalde" <roberto(dot)abalde(at)galego21(dot)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