-
Notifications
You must be signed in to change notification settings - Fork 746
Add PG_MODULE_MAGIC_EXT macro for Citus and citus columnar #8438
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
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8438 +/- ##
==========================================
- Coverage 88.79% 88.78% -0.01%
==========================================
Files 287 287
Lines 63237 63240 +3
Branches 7927 7928 +1
==========================================
- Hits 56152 56150 -2
- Misses 4753 4758 +5
Partials 2332 2332 🚀 New features to boost your workflow:
|
0ccc18b to
24e6076
Compare
|
|
||
| /* marks shared object as one loadable by the postgres version compiled against */ | ||
| #if PG_VERSION_NUM >= PG_VERSION_18 | ||
| PG_MODULE_MAGIC_EXT(.name = "citus", .version = "14.0devel"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presumably the .version value needs to be updated with each new citus release (?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could also use CITUS_VERSION_STR to avoid the hassle, let me take a second look at that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CITUS_VERSION_STR doesn't look that good, so better to update this everytime we bump the citus version
Relevant PG18 commit: postgres/postgres@9324c8c58 Add the same for citus_columnar as well. Test this by the new PG18 pg_get_loaded_modules() function.
24e6076 to
3bf426e
Compare
Relevant PG18 commit:
postgres/postgres@9324c8c58
This commit adds PG_MODULE_MAGIC_EXT info for
citusandcitus_columnar.Tested this by the new PG18
pg_get_loaded_modules()function.Fixes #8417
Note: this should be taken care of every time we release a new version and bump the citus version.