Ari Jolma <ajolma@water.hut.fi> writes:
> It seems that there needs to be a union and a subselect.
Yes.
> And the really curious thing is that this problem seems
> to depend on which redhat version there is!
It was trying to interpret a pointer-to-character-string as
a pointer to a Node, so the results would be quite machine-
dependent. This didn't have any effect on execution of the
query, only on display of the parsetree in the postmaster log;
but in the worst-case scenario you could see a coredump from
the printout routine following a nonaligned pointer or some such.
Fixed for 7.0.1.
regards, tom lane