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

Fix ANALYZE on dist hypertable for a set of nodes #4522

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

pmwkaa
Copy link
Contributor

@pmwkaa pmwkaa commented Jul 18, 2022

Make sure ANALYZE can be run on a specific set of data nodes
assigned to the distributed hypertable.

Fix #4508

@pmwkaa pmwkaa requested a review from a team as a code owner July 18, 2022 11:51
@pmwkaa pmwkaa requested review from RafiaSabih and konskov and removed request for a team July 18, 2022 11:51
@pmwkaa pmwkaa self-assigned this Jul 18, 2022
@codecov
Copy link

codecov bot commented Jul 18, 2022

Codecov Report

Merging #4522 (9e96da6) into main (63a80ee) will decrease coverage by 0.04%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4522      +/-   ##
==========================================
- Coverage   90.23%   90.18%   -0.05%     
==========================================
  Files         222      222              
  Lines       41089    41088       -1     
==========================================
- Hits        37076    37056      -20     
- Misses       4013     4032      +19     
Impacted Files Coverage Δ
src/telemetry/functions.c 4.87% <0.00%> (+0.03%) ⬆️
tsl/src/chunk_api.c 94.91% <100.00%> (+<0.01%) ⬆️
src/bgw/scheduler.c 82.89% <0.00%> (-3.54%) ⬇️
src/loader/bgw_message_queue.c 85.52% <0.00%> (-2.64%) ⬇️
tsl/src/remote/dist_commands.c 92.95% <0.00%> (-0.94%) ⬇️
src/bgw/job.c 93.14% <0.00%> (-0.29%) ⬇️
tsl/src/reorder.c 85.37% <0.00%> (-0.27%) ⬇️
tsl/src/bgw_policy/job.c 88.62% <0.00%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca3c85b...9e96da6. Read the comment docs.

Copy link
Contributor

@nikkhils nikkhils left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@svenklemm
Copy link
Member

Needs changelog entry

Make sure ANALYZE can be run on a specific set of data nodes
assigned to the distributed hypertable

Fix timescale#4508
@pmwkaa pmwkaa merged commit 4ed116b into timescale:main Jul 21, 2022
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* timescale#4517 Fix prepared statement param handling in ChunkAppend
* timescale#4522 Fix ANALYZE on dist hypertable for a set of nodes
* timescale#4526 Fix gapfill group comparison for TOASTed values
* timescale#4527 Handle stats properly for range types
* timescale#4532 Fix memory leak in function telemetry
* timescale#4534 Use explicit memory context with hash_create
* timescale#4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill , @hongquani, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
@svenklemm svenklemm mentioned this pull request Jul 22, 2022
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* timescale#4517 Fix prepared statement param handling in ChunkAppend
* timescale#4522 Fix ANALYZE on dist hypertable for a set of nodes
* timescale#4526 Fix gapfill group comparison for TOASTed values
* timescale#4527 Handle stats properly for range types
* timescale#4532 Fix memory leak in function telemetry
* timescale#4534 Use explicit memory context with hash_create
* timescale#4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill , @hongquani, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
svenklemm added a commit to svenklemm/timescaledb that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* timescale#4517 Fix prepared statement param handling in ChunkAppend
* timescale#4522 Fix ANALYZE on dist hypertable for a set of nodes
* timescale#4526 Fix gapfill group comparison for TOASTed values
* timescale#4527 Handle stats properly for range types
* timescale#4532 Fix memory leak in function telemetry
* timescale#4534 Use explicit memory context with hash_create
* timescale#4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill, @hongquan, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
svenklemm added a commit that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* #4517 Fix prepared statement param handling in ChunkAppend
* #4522 Fix ANALYZE on dist hypertable for a set of nodes
* #4526 Fix gapfill group comparison for TOASTed values
* #4527 Handle stats properly for range types
* #4532 Fix memory leak in function telemetry
* #4534 Use explicit memory context with hash_create
* #4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill, @hongquan, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
svenklemm added a commit that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* #4517 Fix prepared statement param handling in ChunkAppend
* #4522 Fix ANALYZE on dist hypertable for a set of nodes
* #4526 Fix gapfill group comparison for TOASTed values
* #4527 Handle stats properly for range types
* #4532 Fix memory leak in function telemetry
* #4534 Use explicit memory context with hash_create
* #4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill, @hongquan, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
svenklemm added a commit that referenced this pull request Jul 22, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* #4517 Fix prepared statement param handling in ChunkAppend
* #4522 Fix ANALYZE on dist hypertable for a set of nodes
* #4526 Fix gapfill group comparison for TOASTed values
* #4527 Handle stats properly for range types
* #4532 Fix memory leak in function telemetry
* #4534 Use explicit memory context with hash_create
* #4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill, @hongquan, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
svenklemm added a commit that referenced this pull request Jul 25, 2022
This release is a patch release. We recommend that you upgrade at the
next available opportunity.
Among other things this release fixes several memory leaks, handling
of TOASTed values in GapFill and parameter handling in prepared statements.

**Bugfixes**

* #4517 Fix prepared statement param handling in ChunkAppend
* #4522 Fix ANALYZE on dist hypertable for a set of nodes
* #4526 Fix gapfill group comparison for TOASTed values
* #4527 Handle stats properly for range types
* #4532 Fix memory leak in function telemetry
* #4534 Use explicit memory context with hash_create
* #4538 Fix chunk creation on hypertables with non-default statistics

**Thanks**

* @3a6u9ka, @bgemmill, @hongquan, @stl-leonid-kalmaev and @victor-sudakov for reporting a memory leak
* @hleung2021 and @laocaixw  for reporting an issue with parameter handling in prepared statements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: ANALYZE on distributed hypertable always runs on all nodes
3 participants