This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
check postgres sequences for validity on startup #7938
Labels
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
Z-Help-Wanted
We know exactly how to fix this issue, and would be grateful for any contribution
z-p2
(Deprecated Label)
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.
The text was updated successfully, but these errors were encountered: