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.

> 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

Attachment: v1-0001-Fix-brown-paper-bag-bug-in-bbe08b8869bd29d587f24e.patch
Description: Binary data

Reply via email to