10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 44375f9 + afde97d commit f7ab4c4Copy full SHA for f7ab4c4
upgrade_scripts/pg_sphere--1.3.1--1.3.2.sql.in
@@ -1,4 +1,14 @@
1
-- add "fetch" support function to enable index-only scans for spoint3
2
3
-ALTER OPERATOR FAMILY spoint3 USING gist ADD
4
- 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)
5
+
6
+DO $$
7
+BEGIN
8
+ ALTER OPERATOR FAMILY spoint3 USING gist ADD
9
+ FUNCTION 9 (spoint, spoint) g_spoint3_fetch (internal);
10
+EXCEPTION
11
+ WHEN duplicate_object THEN NULL;
12
+ WHEN OTHERS THEN RAISE;
13
+END;
14
+$$;
0 commit comments