-
Notifications
You must be signed in to change notification settings - Fork 15
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
Comments
On Tue, May 17, 2022 at 1:38 PM msdemlei ***@***.***> wrote:
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?
Do you have any benchmarks ?
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...
Simple script with a bunch CREATE OR REPLACE
… —
Reply to this email directly, view it on GitHub
<#7>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQURYX6VHYA3SUTRQKD7ZDVKNZKJANCNFSM5WEORUYQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
|
On Fri, May 27, 2022 at 04:02:10AM -0700, Oleg Bartunov wrote:
On Tue, May 17, 2022 at 1:38 PM msdemlei ***@***.***> wrote:
> Classic use cases (such as our healpix maps) profit greatly from parallel
> plans -- so, what about a round of declaring our functions PARALLEL SAFE?
Do you have any benchmarks ?
Nothing published for pg_sphere operations specifically, but
anecdotically, what I wrote in
https://blog.g-vo.org/parallel-queries.html applies; an all-sky
healpix map of SDSS DR16 takes somewhat more than an hour on my
server sequentially, and 15 minutes in the config mentioned in the
blog post.
|
On Mon, May 30, 2022 at 2:10 PM msdemlei ***@***.***> wrote:
On Fri, May 27, 2022 at 04:02:10AM -0700, Oleg Bartunov wrote:
> On Tue, May 17, 2022 at 1:38 PM msdemlei ***@***.***> wrote:
> > Classic use cases (such as our healpix maps) profit greatly from
parallel
> > plans -- so, what about a round of declaring our functions PARALLEL
SAFE?
Try this branch https://github.com/postgrespro/pgsphere/tree/parallel_safe
I was unable to test on my mac running Monterey 12.4 because of linking
problem
with libhealpix.
… >
> Do you have any benchmarks ?
Nothing published for pg_sphere operations specifically, but
anecdotically, what I wrote in
https://blog.g-vo.org/parallel-queries.html applies; an all-sky
healpix map of SDSS DR16 takes somewhat more than an hour on my
server sequentially, and 15 minutes in the config mentioned in the
blog post.
—
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQURYRXT6ZMB5XXB2KG24DVMSOZNANCNFSM5WEORUYQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
|
On Mon, Jun 06, 2022 at 07:40:03AM -0700, Oleg Bartunov wrote:
Try this branch https://github.com/postgrespro/pgsphere/tree/parallel_safe
I was unable to test on my mac running Monterey 12.4 because of
linking problem with libhealpix.
Looks good on a Debian stable, where it builds nicely, and the tests
pass, too, except that init_test.out is slightly outdated:
-psql:pg_sphere.test.sql:9152: NOTICE: return type smoc is only a shell
-psql:pg_sphere.test.sql:9158: NOTICE: argument type smoc is only a shell
+psql:pg_sphere.test.sql:9154: NOTICE: return type smoc is only a shell
+psql:pg_sphere.test.sql:9160: NOTICE: argument type smoc is only a shell
Technically, I wonder if the cleanup of the yacc-generated files
shouldn't come in through a different branch/PR; the diff is
rather large already with just the PARALLEL SAFE changes. But then if
the individual commits survive the merge, it'll still be clear enough
what happened the way things are.
Disclaimer: I've not tried to upgrade an existing database yet (will
do once it's a PR). However, pg_sphere--1.2.0--1.2.1.sql.in runs
nicely, so I'm confident it should work fine.
|
It's sad this has languished in a branch. Can we get some aspect of this submitted as a PR and merged? |
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.
This issue can be closed now, I think. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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...
The text was updated successfully, but these errors were encountered: