On Thursday 01 September 2016 02:51:54 Josh Smeaton wrote: > A major issue with this would be the many apps out in the wild (and their > tests!) that assume the pk is an integer, and do queries like > .filter(pk=1).
FWIW, this is a bad practice which we should recommend against. In databases which rely on sequences, after you've run some tests, the pk of the first record in a table is not necessarily 1 (because records in the table are removed when test transactions are rolled back, but sequence values are not re-used). Similar issues can arise in parallel execution of tests. [This is a bit off-topic for the pk-type setting idea, I know] Shai.