Hello everyone, there was a very nontrivial task. There is a large table with data, data from it is constantly "left" to other places permanently, there are no foreign keys on the ID of this table, however in this process the post-auto auto increment (it’s the sequence) continues to be wound and now I have integer out of range, and there are only a few million entries in the table. Actually the question is how to rebuild the table ID and sequence in the postgrece? Ie, roughly speaking, so that all current records have ID from 1st to count (records)?
thank