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

[Bug]: duplicate key value violates unique constraint "bgw_job_stat_history_pkey" since upgrading to 2.18.2 #7815

Open
splitice opened this issue Mar 12, 2025 · 2 comments
Labels

Comments

@splitice
Copy link

What type of bug is this?

Unexpected error

What subsystems and features are affected?

Background worker

What happened?

Regular messages:

 main  [2654342.733071] postgresql[17256]: 2025-03-12 04:30:36.168 UTC [17256] ERROR:  duplicate key value violates unique constraint "bgw_job_stat_history_pkey"
 main  [2654342.735028] postgresql[17256]: 2025-03-12 04:30:36.168 UTC [17256] DETAIL:  Key (id)=(11258512) already exists.
 main  [2654342.742490] postgresql[161]: 2025-03-12 04:30:36.179 UTC [161] LOG:  background worker "TimescaleDB Background Worker Scheduler" (PID 17256) exited with exit code 1

Background jobs stop running until restart of postgresql, eventually problem returns.

TimescaleDB version affected

2.18.2

PostgreSQL version used

14.15

What operating system did you use?

Debian

What installation method did you use?

Source

What platform did you run on?

Other

Relevant log output and stack trace

How can we reproduce the bug?

That I am not sure, we have seen this on every system since upgrading.

Our systems are armv7's if thats relevant.
@splitice splitice added the bug label Mar 12, 2025
@akuzm
Copy link
Member

akuzm commented Mar 12, 2025

Might be related to the duplicate job issue: #7281

@splitice
Copy link
Author

@akuzm potentially.

Our previous timescaledb version was 2.9.3 which did not experience it. Unfortunately thats a large bisection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants