title: Postgresql: How can I set the id for null values following existed sequence id?
body: <p>I have a table with 10 million records, there are about 1 million records with id from 1-1 million, and about 9 million records with the null values. How can I set the id for null values with a sequence of id's that following the existing id.</p>