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

Replace SPI_execute by SPI_execute_with_args in materialization #7319

Conversation

fabriziomello
Copy link
Contributor

@fabriziomello fabriziomello commented Oct 4, 2024

To prevent issues on TimestampTz output used in SQL statements dynamically generated for the Continuous Aggregate materialization code we replaced the SPI_execute by SPI_execute_with_args so now it will not convert timestamp to string and parse it back anymore.

This popped up due to some tzdata 2024b changes in timezone PST8PDT that also lead to some Postgres changes on PG17:

postgres/postgres@b8ea0f67

Disable-check: force-changelog-file

@fabriziomello fabriziomello self-assigned this Oct 4, 2024
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 96.15385% with 1 line in your changes missing coverage. Please review.

Project coverage is 82.15%. Comparing base (59f50f2) to head (b685f2f).
Report is 381 commits behind head on main.

Files with missing lines Patch % Lines
tsl/src/continuous_aggs/materialize.c 96.15% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7319      +/-   ##
==========================================
+ Coverage   80.06%   82.15%   +2.09%     
==========================================
  Files         190      217      +27     
  Lines       37181    38854    +1673     
  Branches     9450    10014     +564     
==========================================
+ Hits        29770    31922    +2152     
+ Misses       2997     2940      -57     
+ Partials     4414     3992     -422     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch 2 times, most recently from 904176c to ca1e8c4 Compare October 5, 2024 12:46
@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch from ca1e8c4 to 61a3048 Compare October 5, 2024 13:10
@fabriziomello fabriziomello added this to the TimescaleDB 2.17.0 milestone Oct 7, 2024
@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch from 1ed81a5 to 2d01fb0 Compare October 7, 2024 13:18
@fabriziomello fabriziomello marked this pull request as ready for review October 7, 2024 13:19
@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch 2 times, most recently from 8b69290 to e4225b1 Compare October 7, 2024 14:54
@fabriziomello fabriziomello changed the title Force DateStyle and DateOrder in materialization Replace SPI_execute by SPI_execute_with_args in materialization Oct 7, 2024
@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch from e4225b1 to 7c56096 Compare October 7, 2024 15:17
To prevent issues on TimestampTz output used in SQL statements
dynamically generated for the Continuous Aggregate materialization
code we replaced the `SPI_execute` by `SPI_execute_with_args` so now
it will not convert timestamp to string and parse it back anymore.

This popped up due to some tzdata 2024b changes in timezone PST8PDT
that also lead to some Postgres changes on PG17:

postgres/postgres@b8ea0f67
@fabriziomello fabriziomello force-pushed the cagg_force_datestyle_and_order_in_materialize branch from 7c56096 to b685f2f Compare October 7, 2024 15:18
@fabriziomello fabriziomello merged commit c59c3e4 into timescale:main Oct 7, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants