"Robert Haas" <robertmhaas(at)gmail(dot)com> writes:
> I found the following behavior surprising. Is there a reason for it?
Yes.
regards, tom lane
(Oh, you wanted to know what the reason is? It's because a sort step
is not going to pass through any tuple identity information.)