Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[ISSUE #19] Make HEALPix/MOC support optional#26

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

esabol
Copy link
Contributor

@esabolesabol commentedJul 6, 2023
edited
Loading

This PR address issue#19 and makes support for HEALPix/MOC functionality optional. It is enabled by default, but it can be disabled by includingUSE_HEALPIX=0 as an argument to themake commands. The README.pg_sphere file is updated to reflect this change (and other recent changes to the build process).

Also, when upgrading my installation from 1.2.1 to 1.2.2, I was getting the error:

# ALTER EXTENSION pg_sphere UPDATE TO '1.2.2';ERROR:  function g_spoint3_fetch(internal, internal, internal) does not exist

I've included a fix for that in this PR (the function is justg_spoint3_fetch(internal)). Let me know if you prefer that I submit that as a separate PR.

@esabolesabol changed the titleMake HEALPix/MOC support optional[ISSUE #19] Added PARALLEL SAFE mark to pgSphere functions Make HEALPix/MOC support optionalJul 6, 2023
@esabolesabol changed the title[ISSUE #19] Added PARALLEL SAFE mark to pgSphere functions Make HEALPix/MOC support optional[ISSUE #19] Make HEALPix/MOC support optionalJul 6, 2023
@esabol
Copy link
ContributorAuthor

make test fails, but I don't think it worked before this PR either? Does it work for you? Does anyone care?make crushtest works fine...

@esabolesabolforce-pushed theissue-19-make-healpix-moc-optional branch fromceab70d to0d272ebCompareJuly 7, 2023 03:55
@vitcpp
Copy link
Contributor

vitcpp commentedJul 7, 2023
edited
Loading

@esabol Nice catch! You've found g_spoint3_fetch issue. Once we do not change the version number I'm ok to do it in this PR. Thank you!

@vitcpp
Copy link
Contributor

@esabol Concerning make test. It fails without your PR. I will create an issue for it.

Makefile Outdated
REGRESS += healpix moc mocautocast
endif

REGRESS += epochprop
Copy link
Contributor

Choose a reason for hiding this comment

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

I propose not to separate epochprop into a new line. It is already included unconditionally.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I didn't want to change the order of the tests, as I thought that might affect something. I think I saw a comment somewhere saying that "the order matters" and not to change it, but maybe that doesn't apply toREGRESS. If it's ok to change the order of the tests, it would certainly simplify things if I could add it unconditionally above this line and I will update the PR.

Copy link
Contributor

@vitcppvitcppJul 7, 2023
edited
Loading

Choose a reason for hiding this comment

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

I may guess that epochprop independent on other tests. I tried to move epochprop back and forth and I haven't seen any problems with it. I got your point. It is up to you to keep PR unchanged. Furthermore, we are planning to cleanup and improve Makefile in the future. I do not see any problems with your PR at the moment.

@esabolesabol mentioned this pull requestJul 7, 2023
@esabol
Copy link
ContributorAuthor

esabol commentedJul 7, 2023
edited
Loading

With the help of Travis CI, I gotmake test working again, both with HEALPix and without. Some of the line numbers were just off by one. I've included these changes in this PR since the expected output formake test is different withUSE_HEALPIX=0 and without, so I think it's related. This work addresses issue#28 as a result. I think we should keepinit_test.sql. I think it's meant to be used to test the buildbefore you install it. So perhaps the README should recommend that the procedure should bemake; make test; make install; make installcheck; make crushtest?

I've also addedmake test andmake crushtest to the Travis CI and added a separateUSE_HEALPIX=0 build and it's testing. All this adds approximately 1 minute to each CI job or about 6 minutes for all builds in PR. I mention this since I know Travis CI costs money. These changes address issue#27.

That just leaves the minimum PostgreSQL version mentioned in theREADME.pg_sphere file. I've changed it to version 9.6 in the most recent commits. Other than that, this PR is ready to merge if you like what you see. Thanks!

@vitcpp
Copy link
Contributor

@esabol You did great work! Give me please some time to review the changes. Thank you!

esabol reacted with thumbs up emoji

@vitcpp
Copy link
Contributor

@esabol I tested your changes. It works for me with and without USE_HEALPIX. Thank you!

esabol reacted with thumbs up emoji

@esabol
Copy link
ContributorAuthor

Thank you,@vitcpp !

@vitcppvitcpp merged commit2c4cd20 intopostgrespro:masterJul 11, 2023
@esabolesabol mentioned this pull requestJul 11, 2023
@esabolesabol deleted the issue-19-make-healpix-moc-optional branchJuly 11, 2023 16:44
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@vitcppvitcppvitcpp approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@esabol@vitcpp

[8]ページ先頭

©2009-2025 Movatter.jp