Skip to content

Commit f20a664

Browse files
committed
Fix code formatting, bump release version up to 1.5.0
Raise the version up to 1.5.0, add upgrade script Fix issues found after the review
1 parent f2b6879 commit f20a664

File tree

8 files changed

+222
-101
lines changed

8 files changed

+222
-101
lines changed

Diff for: Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ DATA_built = $(RELEASE_SQL) \
3434
pg_sphere--1.3.0--1.3.1.sql \
3535
pg_sphere--1.3.1--1.4.0.sql \
3636
pg_sphere--1.4.0--1.4.1.sql \
37-
pg_sphere--1.4.1--1.4.2.sql
37+
pg_sphere--1.4.1--1.4.2.sql \
38+
pg_sphere--1.4.2--1.5.0.sql
3839

3940
DOCS = README.pg_sphere COPYRIGHT.pg_sphere
4041
TESTS = version tables points euler circle line ellipse poly path box \
@@ -209,6 +210,9 @@ pg_sphere--1.3.1--1.4.0.sql: pgs_circle_sel.sql.in pgs_hash.sql.in
209210
pg_sphere--1.4.0--1.4.1.sql pg_sphere--1.4.1--1.4.2.sql:
210211
@echo "-- Nothing to upgrade in the schema" > $@
211212

213+
pg_sphere--1.4.2--1.5.0.sql:
214+
cat upgrade_scripts/$@.in $^ > $@
215+
212216
# end of local stuff
213217

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

Diff for: Makefile.common.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
#----------------------------------------------------------------------------
66

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

Diff for: doc/indices.sgm

+5-4
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
</listitem>
7070
</itemizedlist>
7171
<para>
72-
GiST index can be used also for fast finding points closest to the given one
73-
when ordering by an expression with the <literal>&lt;-&gt;</literal> operator
74-
is used, as shown in an example below.
72+
A GiST index can be also used for quickly finding the points closest to the given one
73+
when ordering by an expression with the <literal>&lt;-&gt;</literal> operator,
74+
as shown in an example below.
7575
</para>
7676
<para>
7777
BRIN indexing supports just spherical points (<type>spoint</type>)
@@ -88,7 +88,7 @@
8888
<![CDATA[VACUUM ANALYZE test;]]>
8989
</programlisting>
9090
<para>
91-
To find points closest to a given spherical position, use the <literal>&lt;-&gt;</literal> operator:
91+
To find the points closest to a given spherical position, use the <literal>&lt;-&gt;</literal> operator:
9292
</para>
9393
<programlisting>
9494
<![CDATA[SELECT * FROM test ORDER BY pos <-> spoint (0.2, 0.3) LIMIT 10 ]]>
@@ -112,6 +112,7 @@
112112
<![CDATA[CREATE INDEX test_pos_idx USING BRIN ON test (pos) WITH (pages_per_range = 16);]]>
113113
</programlisting>
114114
</example>
115+
115116
</sect1>
116117

117118
<sect1 id="ind.smoc">

Diff for: expected/version.out

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
SELECT pg_sphere_version();
33
pg_sphere_version
44
-------------------
5-
1.4.2
5+
1.5.0
66
(1 row)
77

Diff for: pg_sphere.control

+1-1
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.4.2'
3+
default_version = '1.5.0'
44
module_pathname = '$libdir/pg_sphere'
55
relocatable = true

Diff for: pgs_gist.sql.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ CREATE OPERATOR CLASS spoint
117117
OPERATOR 14 @ (spoint, spoly),
118118
OPERATOR 15 @ (spoint, sellipse),
119119
OPERATOR 16 @ (spoint, sbox),
120-
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops,
120+
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops,
121121
OPERATOR 37 <@ (spoint, scircle),
122122
OPERATOR 38 <@ (spoint, sline),
123123
OPERATOR 39 <@ (spoint, spath),

0 commit comments

Comments
 (0)