Skip to content

Mark pg_sphere functions as parallel safe? #7

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

Closed
msdemlei opened this issue May 17, 2022 · 7 comments
Closed

Mark pg_sphere functions as parallel safe? #7

msdemlei opened this issue May 17, 2022 · 7 comments
Assignees

Comments

@msdemlei
Copy link
Contributor

For all I can see everything we do ought to be parallel safe by postgres standards (i.e., we don't touch anything within the database at all).

Classic use cases (such as our healpix maps) profit greatly from parallel plans -- so, what about a round of declaring our functions PARALLEL SAFE?

The one problem I see at this point: How do we upgrade existing installations without going insane? Enumerating all the signatures in an endless ALTER FUNCTION sequence looks really unattractive to me...

@obartunov
Copy link

obartunov commented May 27, 2022 via email

@msdemlei
Copy link
Contributor Author

msdemlei commented May 30, 2022 via email

@obartunov
Copy link

obartunov commented Jun 6, 2022 via email

@msdemlei
Copy link
Contributor Author

msdemlei commented Jun 8, 2022 via email

@esabol
Copy link
Contributor

esabol commented Jun 14, 2023

It's sad this has languished in a branch. Can we get some aspect of this submitted as a PR and merged?

@vitcpp
Copy link
Contributor

vitcpp commented Jun 15, 2023

@esabol We are planning to come to this task in the near future once we complete some other work. Now we have to do some work to be in sync with @msdemlei

@vitcpp vitcpp self-assigned this Jun 30, 2023
vitcpp pushed a commit to vitcpp/pgsphere that referenced this issue Jul 4, 2023
The patch is based on Feodor Sigaev's branch (parallel_safe).
Some adjustments were made to fix compilation. Checked the number of
changes in function declarations and the number of function alterations
in the upgrade script pg_sphere--1.2.1--1.2.2.sql.in (the numbers
should match).

Some stuff in Makefile related to 9.X versions (PARALLEL SAFE
removal from install and update scripts) was also removed.
@esabol
Copy link
Contributor

esabol commented Jul 6, 2023

This issue can be closed now, I think.

@vitcpp vitcpp closed this as completed Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants