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 wrong use of Const instead of Datum #6269

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

konskov
Copy link
Contributor

@konskov konskov commented Nov 3, 2023

PG16 converted the GetDatum() and DatumGet() macros to inline
functions. This enabled the compiler to catch a wrong use of Const
instead of Datum.

postgres/postgres@c8b2ef0

(regression introduced by #6203)

@konskov konskov marked this pull request as ready for review November 3, 2023 12:43
Copy link

github-actions bot commented Nov 3, 2023

@mkindahl, @antekresic: please review this pull request.

Powered by pull-review

@konskov konskov requested a review from akuzm November 3, 2023 12:44
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.

Looks good, but one question.

tsl/src/nodes/decompress_chunk/exec.c Show resolved Hide resolved
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

Merging #6269 (a957fb8) into main (c58a640) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #6269      +/-   ##
==========================================
- Coverage   65.30%   65.27%   -0.03%     
==========================================
  Files         247      247              
  Lines       57528    57482      -46     
  Branches    12784    12765      -19     
==========================================
- Hits        37569    37524      -45     
- Misses      18073    18084      +11     
+ Partials     1886     1874      -12     
Files Coverage Δ
tsl/src/nodes/decompress_chunk/exec.c 92.93% <0.00%> (ø)

... and 68 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@konskov konskov changed the title Fix compilation error on PG16 Fix wrong use of Const instead of Datum Nov 3, 2023
@fabriziomello fabriziomello added the pg16 Issue/PR related to support for PG16 label Nov 3, 2023
@akuzm
Copy link
Member

akuzm commented Nov 3, 2023

Oh, I just broke it today, thanks for the fix :) It's hard to add the test for this particular condition until we have vectorized scalar array operations. I'll add it at that time.

PG16 converted the *GetDatum() and DatumGet*() macros to inline
functions. This enabled the compiler to catch a wrong use of Const
instead of Datum.

postgres/postgres@c8b2ef0
@konskov
Copy link
Contributor Author

konskov commented Nov 3, 2023

Thank you for explaining @fabriziomello , I've updated the commit message

@fabriziomello
Copy link
Contributor

Oh, I just broke it today, thanks for the fix :) It's hard to add the test for this particular condition until we have vectorized scalar array operations. I'll add it at that time.

Don't worry ... We're almost there for enabling PG16 on CI (we just merged some last failures today)

@konskov konskov enabled auto-merge (rebase) November 3, 2023 14:48
@konskov konskov merged commit 187b124 into timescale:main Nov 3, 2023
36 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pg16 Issue/PR related to support for PG16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants