I want to skip some ranges in sequence:
Create sequence id_seq;
Consider I have a sequence as Id_seq
.. And it starts from 100..
When it reaches to 199.. Then it should start with 1000 and when it reaches 1999 .. It should start with 10000..
setval(100,'Id_seq');
Whether postgres
has any default configuration to do this?
Multiple process will use this sequence.. So assigning manually in process using setval()
lead some difficulties..