Open raineth opened 4 days ago
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (recorder
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
recorder documentation recorder source (message by IssueLinks)
The problem
In issue #119167/PR #121025, the size of IDs was increased to a BIGINT. Unfortunately, it appears that the fix did not alter existing sequences, as I'm still receiving sequence errors on 2024.10.x with BIGINT id columns:
psycopg2.errors.SequenceGeneratorLimitExceeded: nextval: reached maximum value of sequence "states_state_id_seq" (2147483647)
I have post-#121025 ID columns:
Manually executing
ALTER SEQUENCE states_state_id_seq AS bigint;
repaired things for me. I didn't grab the sequence status before fixing it, so contrast with statistics_id_seq:What version of Home Assistant Core has the issue?
core-2024.10.2
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
recorder
Link to integration documentation on our website
https://www.home-assistant.io/integrations/recorder/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
PostgreSQL 16.4 Python 3.12.7