-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alter spoint op family to add missed operator 17 (<->) (#121)
The upgrade script misses the altering of spoint operator family to add operator 17. It is required for k-NN search. Change the version to 1.5.1.
- Loading branch information
Showing
5 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
SELECT pg_sphere_version(); | ||
pg_sphere_version | ||
------------------- | ||
1.5.0 | ||
1.5.1 | ||
(1 row) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# pg_sphere extension | ||
comment = 'spherical objects with useful functions, operators and index support' | ||
default_version = '1.5.0' | ||
default_version = '1.5.1' | ||
module_pathname = '$libdir/pg_sphere' | ||
relocatable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
-- Upgrade: 1.5.0 -> 1.5.1 | ||
|
||
DO $$ | ||
BEGIN | ||
ALTER OPERATOR FAMILY spoint USING gist ADD | ||
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops; | ||
EXCEPTION | ||
WHEN duplicate_object THEN NULL; | ||
WHEN OTHERS THEN RAISE; | ||
END; | ||
$$; |