Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benji with PostgreSQL - reached maximum value of sequence #165

Open
bbs2web opened this issue Aug 19, 2024 · 1 comment
Open

Benji with PostgreSQL - reached maximum value of sequence #165

bbs2web opened this issue Aug 19, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@bbs2web
Copy link

bbs2web commented Aug 19, 2024

Can't delete old backups at the moment due to PostgreSQL yielding an error that 'deleted_blocks_id_seq' is at the maximum value of sequence.

I found a page on the net which gives various ways to work around it, would it be save to unset a maximum, or any recommendations on how we should proceed?

Error in Benji:
ERROR: DataError: (psycopg2.errors.SequenceGeneratorLimitExceeded) nextval: reached maximum value of sequence "deleted_blocks_id_seq" (2147483647)

Page on the internet:
https://database.guide/6-ways-to-fix-nextval-reached-maximum-value-of-sequence-in-postgresql/

@bbs2web bbs2web added the bug Something isn't working label Aug 19, 2024
@wech71
Copy link
Contributor

wech71 commented Nov 7, 2024

Same here. Fortunately the deleted_blocks table was empty, so I could reset the deleted_blocks_id_seq to 0.

Probably the id column and sequence should be changed to a bigint (64 bit value) and the sequence limit removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants