Is there a built in function for retrieving the next value of a sequence and updating the sequence counter?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных