Skip to content
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

g_spoint3_fetch was already part of the spoint3 opclass in older vers… #83

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions upgrade_scripts/pg_sphere--1.3.1--1.3.2.sql.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
-- add "fetch" support function to enable index-only scans for spoint3

ALTER OPERATOR FAMILY spoint3 USING gist ADD
FUNCTION 9 (spoint, spoint) g_spoint3_fetch (internal);
-- g_spoint3_fetch was already part of the spoint3 opclass in older versions
-- around 1.0, but later made optional (see bdc37d1)

DO $$
BEGIN
ALTER OPERATOR FAMILY spoint3 USING gist ADD
FUNCTION 9 (spoint, spoint) g_spoint3_fetch (internal);
EXCEPTION
WHEN duplicate_object THEN NULL;
WHEN OTHERS THEN RAISE;
END;
$$;