-
Notifications
You must be signed in to change notification settings - Fork 942
[Bug]: INSERT INTO ... ON CONFLICT DO NOTHING on compressed chunks exits prematurely when encountering a conflict #7672
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
Labels
Comments
svenklemm
added a commit
to svenklemm/timescaledb
that referenced
this issue
Feb 7, 2025
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts it would abort additional INSERTS following the INSERT triggering the DO NOTHING clause leading to missed INSERTs. Fixes timescale#7672
svenklemm
added a commit
to svenklemm/timescaledb
that referenced
this issue
Feb 7, 2025
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts it would abort additional INSERTS following the INSERT triggering the DO NOTHING clause leading to missed INSERTs. Fixes timescale#7672
svenklemm
added a commit
to svenklemm/timescaledb
that referenced
this issue
Feb 7, 2025
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts it would abort additional INSERTS following the INSERT triggering the DO NOTHING clause leading to missed INSERTs. Fixes timescale#7672
svenklemm
added a commit
that referenced
this issue
Feb 10, 2025
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts it would abort additional INSERTS following the INSERT triggering the DO NOTHING clause leading to missed INSERTs. Fixes #7672
svenklemm
added a commit
that referenced
this issue
Feb 10, 2025
When an INSERT with ON CONFLICT DO NOTHING hits the first conflicts it would abort additional INSERTS following the INSERT triggering the DO NOTHING clause leading to missed INSERTs. Fixes #7672
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What type of bug is this?
Incorrect result
What subsystems and features are affected?
Compression
What happened?
When inserting rows from a temporary table into a hypertable with compressed chunks, with INSERT INTO ... ON CONFLICT DO NOTHING, the transaction exits as soon as a conflict is encountered.
I expect the insert to continue with the next row.
TimescaleDB version affected
2.17.2
PostgreSQL version used
16
What operating system did you use?
docker.io/timescale/timescaledb-ha:pg16-ts2.17 on Mac OS ARM
What installation method did you use?
Docker
What platform did you run on?
Other
Relevant log output and stack trace
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: