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

Backport to 2.11.x: #6015: Fix incorrect row count in EXPLAIN ANALYZE INSERT .. ON CONFLICT output #6033

Merged
merged 1 commit into from
Aug 31, 2023

Conversation

timescale-automation
Copy link

This is an automated backport of #6015: Fix incorrect row count in EXPLAIN ANALYZE INSERT .. ON CONFLICT output.
The original issue is #6014.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Fix incorrect row count in EXPLAIN ANALYZE INSERT .. ON CONFLICT output

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

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 timescale-automation added the is-auto-backport PR created by backport automation label Aug 31, 2023
@timescale-automation timescale-automation enabled auto-merge (rebase) August 31, 2023 19:18
@codecov
Copy link

codecov bot commented Aug 31, 2023

Codecov Report

❗ No coverage uploaded for pull request base (2.11.x@aaa8866). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             2.11.x    #6033   +/-   ##
=========================================
  Coverage          ?   91.00%           
=========================================
  Files             ?      230           
  Lines             ?    54715           
  Branches          ?        0           
=========================================
  Hits              ?    49793           
  Misses            ?     4922           
  Partials          ?        0           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@timescale-automation timescale-automation merged commit c095a43 into 2.11.x Aug 31, 2023
41 checks passed
@timescale-automation timescale-automation deleted the backport/2.11.x/6015 branch August 31, 2023 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is-auto-backport PR created by backport automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants