Rename the "point is strictly above/below point" comparison operators.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Nov 2020 16:38:37 +0000 (11:38 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 23 Nov 2020 16:38:37 +0000 (11:38 -0500)
commit0cc99327888840f2bf572303b68438e4caf62de9
treeafbe7cc9777f17c0f04545847ab46d27d221890f
parentd36228a9fcdccd57a7dc332572eb9837c7c301e6
Rename the "point is strictly above/below point" comparison operators.

Historically these were called >^ and <^, but that is inconsistent
with the similar box, polygon, and circle operators, which are named
|>> and <<| respectively.  Worse, the >^ and <^ names are used for
*not* strict above/below tests for the box type.

Hence, invent new operators following the more common naming.  The
old operators remain available for now, and are still accepted by
the relevant index opclasses too.  But there's a deprecation notice,
so maybe we can get rid of them someday.

Emre Hasegeli, reviewed by Pavel Borisov

Discussion: http://postgr.es/m/24348.1587444160@sss.pgh.pa.us
17 files changed:
doc/src/sgml/func.sgml
doc/src/sgml/gist.sgml
doc/src/sgml/spgist.sgml
src/backend/access/gist/gistproc.c
src/backend/access/spgist/spgkdtreeproc.c
src/backend/access/spgist/spgquadtreeproc.c
src/include/access/stratnum.h
src/include/catalog/catversion.h
src/include/catalog/pg_amop.dat
src/include/catalog/pg_operator.dat
src/test/regress/expected/create_index.out
src/test/regress/expected/create_index_spgist.out
src/test/regress/expected/opr_sanity.out
src/test/regress/expected/point.out
src/test/regress/sql/create_index.sql
src/test/regress/sql/create_index_spgist.sql
src/test/regress/sql/point.sql