-
Notifications
You must be signed in to change notification settings - Fork 895
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]: Incorrect explain output for INSERT ... ON CONFLICT queries on a hypertable #6014
Labels
Comments
lkshminarayanan
added a commit
to lkshminarayanan/timescaledb
that referenced
this issue
Aug 29, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes timescale#6014
lkshminarayanan
added a commit
to lkshminarayanan/timescaledb
that referenced
this issue
Aug 29, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes timescale#6014
lkshminarayanan
added a commit
to lkshminarayanan/timescaledb
that referenced
this issue
Aug 29, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes timescale#6014
lkshminarayanan
added a commit
to lkshminarayanan/timescaledb
that referenced
this issue
Aug 29, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes timescale#6014
lkshminarayanan
added a commit
to lkshminarayanan/timescaledb
that referenced
this issue
Aug 31, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes timescale#6014
lkshminarayanan
added a commit
that referenced
this issue
Aug 31, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes #6014
github-actions bot
pushed a commit
that referenced
this issue
Aug 31, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes #6014 (cherry picked from commit 8e941b8)
timescale-automation
pushed a commit
that referenced
this issue
Aug 31, 2023
INSERT ... ON CONFLICT statements record few metrics in the ModifyTable node's instrument but they get overwritten by hypertable_modify_explain causing wrong output in EXPLAIN ANALYZE statments. Fix it by saving the metrics into HypertableModify node before replacing them. Fixes #6014 (cherry picked from commit 8e941b8)
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?
Query executor
What happened?
Running
EXPLAIN ANALYZE INSERT ... ON CONFLICT
statements on a hypertable reports wrong number ofConflicting Tuples
andTuples Inserted
when there is a conflict.TimescaleDB version affected
2.11.2
PostgreSQL version used
15.4
What operating system did you use?
Ubuntu
What installation method did you use?
Source
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
Note that despite the conflict, the explain reports
Tuples Inserted
as 1 andConflicting Tuples
as 0. Without EXPLAIN, the query works as expected - the issue is only on the EXPLAIN.How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: