So, some follow up -- during the restore from backup 9 foreign key constraints failed to apply.
This is due to work that I undertook in March 2023 after I lost some data and had to sketchily restore it into a running instance: https://tiny.tilde.website/@insom/110030644607199692
To do that, I relaxed FK constraints and, to the surprise of no-one, some invalid data is there.
Three years later I am fixing this up! I've learned about NOT VALID CONSTRAINTS since then, from my work at Slice.