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

Move partialize functions to _timescaledb_functions schema #6020

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Aug 29, 2023

To increase schema security we do not want to mix our own internal objects with user objects. Since chunks are created in the _timescaledb_internal schema our internal functions should live in a different dedicated schema. This patch make the necessary adjustments for the following functions:

  • finalize_agg_ffunc(internal,text,name,name,name[],bytea,anyelement)
  • finalize_agg_sfunc(internal,text,name,name,name[],bytea,anyelement)
  • partialize_agg(anyelement)
  • finalize_agg(text,name,name,name[][],bytea,anyelement)

Disable-check: force-changelog-file

@github-actions
Copy link

@fabriziomello, @konskov: please review this pull request.

Powered by pull-review

@svenklemm svenklemm force-pushed the schema_partialize branch 3 times, most recently from 971ecaa to 8f56468 Compare August 29, 2023 11:48
@codecov
Copy link

codecov bot commented Aug 29, 2023

Codecov Report

Merging #6020 (0f42af3) into main (a9751cc) will decrease coverage by 7.64%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6020      +/-   ##
==========================================
- Coverage   87.11%   79.48%   -7.64%     
==========================================
  Files         243      243              
  Lines       55993    48799    -7194     
  Branches    12398    12195     -203     
==========================================
- Hits        48780    38786    -9994     
+ Misses       4871     4188     -683     
- Partials     2342     5825    +3483     
Files Changed Coverage Δ
tsl/src/partialize_finalize.c 84.74% <ø> (-7.88%) ⬇️
src/planner/partialize.c 77.77% <100.00%> (-14.09%) ⬇️
tsl/src/continuous_aggs/finalize.c 90.08% <100.00%> (-4.33%) ⬇️
tsl/src/fdw/deparse.c 60.64% <100.00%> (-6.32%) ⬇️

... and 220 files with indirect coverage changes

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

To increase schema security we do not want to mix our own internal
objects with user objects. Since chunks are created in the
_timescaledb_internal schema our internal functions should live in
a different dedicated schema. This patch make the necessary
adjustments for the following functions:

- finalize_agg_ffunc(internal,text,name,name,name[],bytea,anyelement)
- finalize_agg_sfunc(internal,text,name,name,name[],bytea,anyelement)
- partialize_agg(anyelement)
- finalize_agg(text,name,name,name[][],bytea,anyelement)
@svenklemm svenklemm merged commit 3b6dc7d into timescale:main Aug 29, 2023
33 checks passed
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