"Marc G. Fournier" <scrappy(at)postgresql(dot)org> writes:
> Is there something in the 'table file' itself that is holding that relid?
Oh, drat, you're right --- TOAST pointer datums contain the OID of
the toast file they are pointing to. So any value wide enough to be
pushed out-of-line is going to have a problem.
Ugh. Not sure there is any good way out of this one. Adjusting the
pointer datums in-place doesn't seem very feasible.
regards, tom lane