Posts about sequences
Articles, guides and engineering notes about sequences from the Relyt One team.
2 articles

Postgres identity columns: GENERATED ALWAYS vs BY DEFAULT, and moving off serial
What PostgreSQL identity columns change compared with serial: GENERATED ALWAYS vs BY DEFAULT, OVERRIDING SYSTEM VALUE, sequence permissions, changing the column type, CREATE TABLE LIKE, COPY, and partitioned tables in Postgres 17. Plus a procedure that converts serial columns to identity in place in milliseconds, without rewriting the table. Every statement replayed on Postgres 17.11.

Why Postgres IDs skip numbers, and how to fix "duplicate key" errors after an import
Where gaps in PostgreSQL serial and identity columns come from (rollbacks, ON CONFLICT, crashes, CACHE), why inserts fail with duplicate key value violates unique constraint after a data import, one query that resets every sequence, running out of integer IDs, and gapless invoice numbers. Every statement reproduced on Postgres 17.11.