Thanks a lot. Started poking around database some more and it’s clearly corrupted. Many posts had the same post_number or sort_order, there were also IDs visible via select * from posts where topic_id = x but not if I added and id = y.
@Jeff, I’ve never said I don’t understand your decision! I wouldn’t ask for help if it was anything deployment-specific.