How to find int4 PKs with out-of-range risks in a large database
Modern ORMs like Rails or Django use int8 (bigint) primary keys (PKs) today.
Modern ORMs like Rails or Django use int8 (bigint) primary keys (PKs) today.
Redefining a PK (primary key) is not a difficult procedure, yet it requires a few non-trivial steps to be done.
As of PG16 (year 2023), Postgres implements UUID versions from 1 to 5, based on RFC 4122.