Skip to content

Commit

Permalink
Fix code formatting, bump release version up to 1.5.0
Browse files Browse the repository at this point in the history
Raise the version up to 1.5.0, add upgrade script

Fix issues found after the review
  • Loading branch information
vitcpp committed Dec 20, 2023
1 parent b7152a2 commit 77401cb
Show file tree
Hide file tree
Showing 8 changed files with 222 additions and 101 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ DATA_built = $(RELEASE_SQL) \
pg_sphere--1.3.0--1.3.1.sql \
pg_sphere--1.3.1--1.4.0.sql \
pg_sphere--1.4.0--1.4.1.sql \
pg_sphere--1.4.1--1.4.2.sql
pg_sphere--1.4.1--1.4.2.sql \
pg_sphere--1.4.2--1.5.0.sql

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

pg_sphere--1.4.2--1.5.0.sql:
cat upgrade_scripts/$@.in $^ > $@

# end of local stuff

src/sscan.o : src/sparse.c
Expand Down
2 changes: 1 addition & 1 deletion Makefile.common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#----------------------------------------------------------------------------

EXTENSION := pg_sphere
PGSPHERE_VERSION := 1.4.2
PGSPHERE_VERSION := 1.5.0
9 changes: 5 additions & 4 deletions doc/indices.sgm
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
</listitem>
</itemizedlist>
<para>
GiST index can be used also for fast finding points closest to the given one
when ordering by an expression with the <literal>&lt;-&gt;</literal> operator
is used, as shown in an example below.
A GiST index can be also used for quickly finding the points closest to the given one
when ordering by an expression with the <literal>&lt;-&gt;</literal> operator,
as shown in an example below.
</para>
<para>
BRIN indexing supports just spherical points (<type>spoint</type>)
Expand All @@ -88,7 +88,7 @@
<![CDATA[VACUUM ANALYZE test;]]>
</programlisting>
<para>
To find points closest to a given spherical position, use the <literal>&lt;-&gt;</literal> operator:
To find the points closest to a given spherical position, use the <literal>&lt;-&gt;</literal> operator:
</para>
<programlisting>
<![CDATA[SELECT * FROM test ORDER BY pos <-> spoint (0.2, 0.3) LIMIT 10 ]]>
Expand All @@ -112,6 +112,7 @@
<![CDATA[CREATE INDEX test_pos_idx USING BRIN ON test (pos) WITH (pages_per_range = 16);]]>
</programlisting>
</example>

</sect1>

<sect1 id="ind.smoc">
Expand Down
2 changes: 1 addition & 1 deletion expected/version.out
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
SELECT pg_sphere_version();
pg_sphere_version
-------------------
1.4.2
1.5.0
(1 row)

2 changes: 1 addition & 1 deletion pg_sphere.control
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.4.2'
default_version = '1.5.0'
module_pathname = '$libdir/pg_sphere'
relocatable = true
2 changes: 1 addition & 1 deletion pgs_gist.sql.in
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ CREATE OPERATOR CLASS spoint
OPERATOR 14 @ (spoint, spoly),
OPERATOR 15 @ (spoint, sellipse),
OPERATOR 16 @ (spoint, sbox),
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops,
OPERATOR 17 <-> (spoint, spoint) FOR ORDER BY float_ops,
OPERATOR 37 <@ (spoint, scircle),
OPERATOR 38 <@ (spoint, sline),
OPERATOR 39 <@ (spoint, spath),
Expand Down
Loading

0 comments on commit 77401cb

Please sign in to comment.