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

Commitdaa9478

Browse files
authored
Alter spoint op family to add missed operator 17 (<->) (#121)
The upgrade script misses the altering of spoint operator familyto add operator 17. It is required for k-NN search.Change the version to 1.5.1.
1 parent8394ae7 commitdaa9478

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

‎Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ DATA_built = $(RELEASE_SQL) \
3535
pg_sphere--1.3.1--1.4.0.sql\
3636
pg_sphere--1.4.0--1.4.1.sql\
3737
pg_sphere--1.4.1--1.4.2.sql\
38-
pg_sphere--1.4.2--1.5.0.sql
38+
pg_sphere--1.4.2--1.5.0.sql\
39+
pg_sphere--1.5.0--1.5.1.sql
3940

4041
DOCS = README.pg_sphere COPYRIGHT.pg_sphere
4142
TESTS = version tables points euler circle line ellipse poly path box\
@@ -214,6 +215,9 @@ pg_sphere--1.4.0--1.4.1.sql pg_sphere--1.4.1--1.4.2.sql:
214215
pg_sphere--1.4.2--1.5.0.sql:
215216
cat upgrade_scripts/$@.in$^>$@
216217

218+
pg_sphere--1.5.0--1.5.1.sql:
219+
cat upgrade_scripts/$@.in$^>$@
220+
217221
# end of local stuff
218222

219223
src/sscan.o : src/sparse.c

‎Makefile.common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
#----------------------------------------------------------------------------
66

77
EXTENSION := pg_sphere
8-
PGSPHERE_VERSION := 1.5.0
8+
PGSPHERE_VERSION := 1.5.1

‎expected/version.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
SELECT pg_sphere_version();
33
pg_sphere_version
44
-------------------
5-
1.5.0
5+
1.5.1
66
(1 row)
77

‎pg_sphere.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pg_sphere extension
22
comment = 'spherical objects with useful functions, operators and index support'
3-
default_version = '1.5.0'
3+
default_version = '1.5.1'
44
module_pathname = '$libdir/pg_sphere'
55
relocatable = true
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-- Upgrade: 1.5.0 -> 1.5.1
2+
3+
DO $$
4+
BEGIN
5+
ALTER OPERATOR FAMILY spoint USING gist ADD
6+
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops;
7+
EXCEPTION
8+
WHEN duplicate_object THEN NULL;
9+
WHEN OTHERS THEN RAISE;
10+
END;
11+
$$;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp