title: Variable Digit id autoincrement in psql
body: <p>I want the column(id) in psql table to be like this 0001,0002,....,0010,0011,.....0100,0101,.....1000,1001,....10000,10001<a href="https://i.stack.imgur.com/0b7Mg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0b7Mg.png" alt="enter image description here" /></a></p>
  <p>I used this to create table CREATE TABLE COMPANY(id SERIAL PRIMARY KEY, name TEXT);</p>