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 compiler error when using PG_TRY..PG_FINALLY #7530

Conversation

fabriziomello
Copy link
Contributor

@fabriziomello fabriziomello commented Dec 11, 2024

In #7505 we used PG_TRY() .. PG_FINALLY() but some CI configurations was not happy with it reporting "variable might be clobbered by longjmp".

Fixed it by using PG_TRY() .. PG_CATCH() instead.

https://github.com/timescale/timescaledb/actions/runs/12277548387/job/34257269473#step:13:206

Disable-check: force-changelog-file

In timescale#7505 we used PG_TRY() .. PG_FINALLY() but some CI configurations was
not happy with it reporting "variable might be clobbered by longjmp".

Fixed it by using PG_TRY() .. PG_CATCH() instead.

https://github.com/timescale/timescaledb/actions/runs/12277548387/job/34257269473#step:13:206
@fabriziomello fabriziomello added bug continuous_aggregate ci disable-auto-backport Do not automatically backport this PR or fix of this issue labels Dec 11, 2024
@fabriziomello fabriziomello self-assigned this Dec 11, 2024
Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7530      +/-   ##
==========================================
+ Coverage   80.06%   82.15%   +2.09%     
==========================================
  Files         190      230      +40     
  Lines       37181    43252    +6071     
  Branches     9450    10875    +1425     
==========================================
+ Hits        29770    35535    +5765     
- Misses       2997     3393     +396     
+ Partials     4414     4324      -90     

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

Copy link
Contributor

@mkindahl mkindahl left a comment

Choose a reason for hiding this comment

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

We should be able to use this construction, which is what PostgreSQL is using, but let's do it this way until we figure out what we should change in the compiler settings.

@akuzm akuzm enabled auto-merge (squash) December 12, 2024 11:26
@akuzm
Copy link
Member

akuzm commented Dec 12, 2024

@fabriziomello I'm going to merge this to unblock the CI for some PRs.

@akuzm akuzm merged commit b0bd828 into timescale:main Dec 12, 2024
53 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci continuous_aggregate disable-auto-backport Do not automatically backport this PR or fix of this issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants