Sequence in postgesql database and long IDs

We are running cuba application on top of postgresql. By default increment value for sequences are generated as 100. We changed this value to 1 (since we use ID on the screen and jumping by 100 is not good for us). After that change each time we restart application, sequence in database is late from max(id) in the table. So we get pkey violation errors. If we put increment value to 100 back then everything works fine. Another workaround is syncronize max(id) with current value of sequences each time we restart application.

Please, let us know how to fix this issue so we won’t need to sync sequences each time we restart app.

Thanks,

Thank you for reporting the problem.
It is fixed for release 6.9 and for the next 6.8 update, see the issue.

Konstantin,
Was the issue resolved in 6.8.7 or it will be resolved in the next update?
Thank you.

The fix was released in 6.8.6, see Fix versions field in the ticket.

Thank you, Konstantin.