Actually that is the application requirment to use 21 bit numbers as porting it from Oracle where it used to work. Yeah now i have decided to use a numeric data type in a table and use that to write my own nextval and currval functions for that purpose.
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных