On Fri, Jul 29, 2022 at 3:10 PM Robert Haas <robertmhaas@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.
> I think I better look into improving the TAP tests for this, too.
TAP test enhancement also included in the attached patch.
--
Robert Haas
EDB: http://www.enterprisedb.com