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-7] Added PARALLEL SAFE mark to pgSphere functions#25

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
vitcpp merged 1 commit intopostgrespro:masterfromvitcpp:7-parallel-safe
Jul 5, 2023

Conversation

vitcpp
Copy link
Contributor

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).

Makefile Outdated
pg_sphere--1.2.1--1.2.2.sql: upgrade_scripts/pg_sphere--1.2.1--1.2.2.sql.in
cat $^ > $@
ifeq ($(has_parallel), n)
sed -i -e '/PARALLEL/d' $@ # version $(pg_version) does not have support for PARALLEL
Copy link
Contributor

@esabolesabolJul 3, 2023
edited
Loading

Choose a reason for hiding this comment

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

Just checking, but shouldn't this line (and lines 120 and 204 and 210) besed -i -e 's/ *PARALLEL SAFE//' $@?

Copy link
ContributorAuthor

@vitcppvitcppJul 4, 2023
edited
Loading

Choose a reason for hiding this comment

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

These lines work only for pg versions less than 9.6 (PARALLEL SAFE is not implemented for earlier versions). Now I removed 9.X versions from tests because these versions are not supported by the community. Furthermore, I'm not sure that sed is executed correctly. It removes the whole line, not only parallel safe marks (IMMUTABLE STRICT seems to be removed as well). When I did the patch I just 'copy-pasted' the old solution. I propose to keep my patch unchanged but to rework these lines in another Issue if we still need support of 9.X versions.

Copy link
Contributor

@esabolesabolJul 4, 2023
edited
Loading

Choose a reason for hiding this comment

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

I think the sed commands should besed -i -e 's/ *PARALLEL SAFE//' $@, but I agree there's no point in continuing to support Pg 9.x, so might as well just remove all of these sed commands.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@esabol I agree, I think to remove obsolete lines of code. I will do it then.

@esabol
Copy link
Contributor

esabol commentedJul 4, 2023
edited
Loading

By the way, if you put "[ISSUE#7]" in the title of the PR instead of "[ISSUE-7]", GitHub will automatically link this PR to that issue.

vitcpp reacted with thumbs up emoji

The patch is based on Feodor Sigaev's branch (parallel_safe).Some adjustments were made to fix compilation. Checked the number ofchanges in function declarations and the number of function alterationsin the upgrade script pg_sphere--1.2.1--1.2.2.sql.in (the numbersshould match).Some stuff in Makefile related to 9.X versions (PARALLEL SAFEremoval from install and update scripts) was also removed.
@vitcppvitcpp merged commite679906 intopostgrespro:masterJul 5, 2023
@vitcpp
Copy link
ContributorAuthor

@esabol Thank you for the review!

esabol reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@esabolesabolesabol 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
@vitcpp@esabol

[8]ページ先頭

©2009-2025 Movatter.jp