-
Notifications
You must be signed in to change notification settings - Fork 15
Issue #139: Add PostgreSQL 18 builds to CI workflow, fix tests on PostgreSQL 18+, and eliminate compilation warnings #140
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
Hmmm, the CI workflow didn't run upon opening the merge request. @vitcpp : I think the CI workflows have been disabled. Can you re-enable them, please? |
@df7cb : Are you able to enable GitHub Actions on this repo? |
I only had admin rights on the "pgsphere" organization, not the postgrespro/pgsphere repo. |
Well, I just emailed @vitcpp. I hope he responds. I am concerned because he hasn't had any GitHub activity in almost a year. |
Hi @esabol, I'm here. I will review the patch and look at other new issues tomorrow. Sorry for the delay. Now it is too late. |
I enabled actions but not sure how to run them for the PR |
@esabol Could you please enable and run Build and Test workflow in your fork and branch to make sure everything is ok? I have no idea how to configure workflows in this repo to manually run with the specified PR? We will merge the commit if everything is ok. |
@esabol I'm trying to fix the tests. I can send you a patch when ready. |
@vitcpp beat me to it. He sent me a patch to fix the selectivity regression test on PostgreSQL 18. That indeed worked on Linux just fine. Unfortunately, the Windows build on PostgreSQL 18 isn't working for some reason. It emits the following warnings (which are treated as compilation errors, so it doesn't even run the regression tests):
I'm confounded as to why this wouldn't be a problem on PostgreSQL 10-17 but is a problem on PostgreSQL 18. Any ideas? I don't really do WIndows.... |
Looks good to me! |
#define EULER_AXIS_Z 3 /* z - axis for Euler transformation */ | ||
|
||
extern int sphere_yylex(); | ||
extern int sphere_yychar; |
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.
I'm not sure about extern declaration of these variables. They are not used in the code except of sparse.c.
I looked deeply into this stuff and found that the sphere_yychar, sphere_yynerrs are the global variables which should be declared with extern in the generated parse.h header. Once, yacc doesn't declare it in the header, the fix seems to me ok as a workaround. I propose to merge it. |
Yes. I had a comment that said as much, but I neglected to post it. What I don't understand is why the PostgresSQL 18 Windows build is using gcc 14+ and the PostgreSQL 10-17 builds are apparently using an older version of gcc. It would be nice if the GitHub Actions CI workflows displayed the output of I think marking these yacc/bison variables as Ready to merge at your convenience, @vitcpp. |
This merge request is a team effort of @esabol and @vitcpp and makes the following changes:
buffers off
toexplain analyze
tests (@vitcpp)