This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Description
in the last two weeks, I've seen two people who have migrated their databases to a new postgres instance and forgotten to copy the sequence generators. At best, this causes confusing errors; at worst, it could lead to corruption.
To save people from shooting themselves in the foot, we could check at startup that there are no rows in the table with IDs above the next number in the sequence, and refuse to start if so.