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

Use postgres implementation of estimate_hashagg_tablesize #2467

Merged
merged 1 commit into from Sep 30, 2020

Conversation

svenklemm
Copy link
Member

Only use our own implementation of estimate_hashagg_tablesize on
versions where the postgres implementation is static.

@svenklemm svenklemm requested a review from a team as a code owner September 29, 2020 20:02
@svenklemm svenklemm requested review from k-rus, WireBaron and gayyappan and removed request for a team September 29, 2020 20:02
@codecov
Copy link

codecov bot commented Sep 29, 2020

Codecov Report

Merging #2467 into master will increase coverage by 0.16%.
The diff coverage is 92.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2467      +/-   ##
==========================================
+ Coverage   89.99%   90.16%   +0.16%     
==========================================
  Files         213      212       -1     
  Lines       34406    34124     -282     
==========================================
- Hits        30964    30768     -196     
+ Misses       3442     3356      -86     
Impacted Files Coverage Δ
src/compat.h 100.00% <ø> (ø)
src/copy.c 87.86% <ø> (-0.20%) ⬇️
src/import/planner.c 70.30% <ø> (+11.12%) ⬆️
src/indexing.c 94.87% <ø> (ø)
src/planner.c 93.80% <ø> (ø)
tsl/src/bgw_policy/compression_api.c 84.15% <ø> (ø)
tsl/src/bgw_policy/job.c 92.35% <ø> (ø)
tsl/src/bgw_policy/reorder_api.c 95.65% <ø> (ø)
tsl/src/bgw_policy/retention_api.c 88.09% <ø> (ø)
tsl/src/compression/compress_utils.c 96.60% <ø> (ø)
... and 28 more

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 a51aa6d...0e87833. Read the comment docs.

Copy link
Contributor

@k-rus k-rus left a comment

Choose a reason for hiding this comment

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

LGTM

src/compat.h Outdated
Comment on lines 299 to 300
* estimate_hashagg_tablesize is a static function in PG11 and earlier so we map
* to our own copy when it's not available
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* estimate_hashagg_tablesize is a static function in PG11 and earlier so we map
* to our own copy when it's not available
* estimate_hashagg_tablesize is a static function in PG11 and earlier, so we map
* to our own copy when it's not available.

Only use our own implementation of estimate_hashagg_tablesize on
versions where the postgres implementation is static.
@svenklemm svenklemm merged commit 7fa8b1c into timescale:master Sep 30, 2020
@svenklemm svenklemm deleted the estimate_hashagg_tablesize branch April 18, 2021 14:22
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.

None yet

4 participants