News for hackers. Stuff that matters.
Re:Postgres sequences can skip 32 unexpectedly by CodesInChaos on Friday July 16, 2021 @10:53AM (#27856853)
Another interesting cause of skipped sequence numbers in postgres is that INSERT ON CONFLICT increments the sequence number even if the row already exists. If the UPDATE is more common than the INSERT case, this will waste more values that it uses. This can be undesirable, even when the absence of gaps isn't strictly required.

There are no comments on this comment yet.