Leonardo F <m_lists(at)yahoo(dot)it> writes:
> Would it make sense to use
> FormIndexDatum
> to get the index value to be used by tuplesort?
That would probably work. You might want to look at the code associated
with the recently-added exclusion constraint feature; that also has a
need to reproduce index entries sometimes.
regards, tom lane