Fix missing startup checks for the consistency of certain PostgreSQL sequences.