Robert Haas <robertmh...@gmail.com> writes: > On Fri, Jul 29, 2022 at 3:10 PM Robert Haas <robertmh...@gmail.com> wrote: >> However, the catalogs show the relfilenode being correct, and the >> relfrozenxid set to a larger value. I suspect the problem here is that >> this needs to be done in the other order, with the TRUNCATE first and >> the update to the pg_class columns afterward.
> That fix appears to be correct. Patch attached. Looks plausible. regards, tom lane