Skip to content

Commit 53de250

Browse files
committed
Drop obsolete compatibility @({bigint,spoint}, smoc) operators
These were required by GAVO DaCHS, but are not used anymore. Furthermore, PG17 will forbid declaring commutators and negators relations with operators that themselves have relations to different operators. We delete pgs_moc_compat.sql.in and remove it from the old pg_sphere--1.1.5beta2gavo--1.1.5beta4gavo.sql upgrade script. This is ok to do since dropping the operators uses "if exists". Discussion: https://www.postgresql.org/message-id/flat/ZTfL1G1fBPQHVPWV%40msg.df7cb.de#ce3801c084bcf05b6b976cb2d0e25b2d Close #85.
1 parent c0777a7 commit 53de250

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

Diff for: Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ endif
6565
PGS_SQL += pgs_gist_spoint3.sql
6666

6767
ifneq ($(USE_HEALPIX),0)
68-
PGS_SQL += pgs_moc_type.sql pgs_moc_compat.sql pgs_moc_ops.sql \
68+
PGS_SQL += pgs_moc_type.sql pgs_moc_ops.sql \
6969
pgs_moc_geo_casts.sql
7070
endif
7171

@@ -154,7 +154,7 @@ ifneq ($(USE_HEALPIX),0)
154154
pg_sphere--1.1.5beta0gavo--1.1.5beta2gavo.sql: pgs_moc_type.sql.in
155155
cat upgrade_scripts/$@.in $^ > $@
156156

157-
pg_sphere--1.1.5beta2gavo--1.1.5beta4gavo.sql: pgs_moc_compat.sql.in
157+
pg_sphere--1.1.5beta2gavo--1.1.5beta4gavo.sql:
158158
cat upgrade_scripts/$@.in $^ > $@
159159

160160
pg_sphere--1.1.5beta4gavo--1.2.0.sql: pgs_moc_ops.sql.in

Diff for: pgs_moc_compat.sql.in

-22
This file was deleted.

Diff for: upgrade_scripts/pg_sphere--1.3.1--1.3.2.sql.in

+4
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ EXCEPTION
1212
WHEN OTHERS THEN RAISE;
1313
END;
1414
$$;
15+
16+
-- remove legacy spellings of operators
17+
DROP OPERATOR IF EXISTS @(bigint, smoc);
18+
DROP OPERATOR IF EXISTS @(spoint, smoc);

0 commit comments

Comments
 (0)