Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> My first attempt at a fix, which was simply swapping relfilenode for the
> TOAST tables (and its indexes) after the data has been copied, does not
> work, apparently because the TOAST pointers have the toast table ID
> embedded.
Ouch. Right.
> I wonder if we can get away with simply renaming the new toast table and
> index after the data has been copied.
Yeah, that seems like the best answer.
regards, tom lane