|
|
|
|
|
by eusto
1339 days ago
|
|
bigint is the default data type for sequences and it's highly unlikely that somebody would reach an overflow with it. I've worked on various database solutions, both rdbms and analytical and I find sequences to be one of the most misunderstood features in the industry. The only guarantee they make is that they generate unique values. Some of the newer distributed rdbms don't even guarantee they'll be monotonic. Relying on them generating consecutive values is a sure way to get vendor lock-in to whatever database has made that guarantee. |
|
It 'violates' the principle of least surprise. Intuitively you'd expect `ON CONFLICT .... DO NOTHING` to do nothing, but it will increment the PK every time.