pgsql: Declare range inclusion operators as taking anyelement not anyno

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Declare range inclusion operators as taking anyelement not anyno
Date: 2011-11-17 23:56:47
Message-ID: E1RRBp1-0006qf-Uh@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Declare range inclusion operators as taking anyelement not anynonarray.

Use of anynonarray was a crude hack to get around ambiguity versus the
array inclusion operators of the same names. My previous patch to extend
the parser's type resolution heuristics makes that unnecessary, so use
the more general declaration instead. This eliminates a wart that these
operators couldn't be used with ranges over arrays, which are otherwise
supported just fine.

Also, mark range_before and range_after as commutator operators,
per discussion with Jeff Davis.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/709aca59608395eef9ceb7dcb79fd9d03a0709ef

Modified Files
--------------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_amop.h | 4 ++--
src/include/catalog/pg_operator.h | 8 ++++----
src/include/catalog/pg_proc.h | 4 ++--
src/test/regress/expected/rangetypes.out | 12 ++++++++++++
src/test/regress/sql/rangetypes.sql | 3 +++
6 files changed, 24 insertions(+), 9 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-11-18 02:32:48 pgsql: Further consolidation of DROP statement handling.
Previous Message Tom Lane 2011-11-17 23:28:51 pgsql: Extend the unknowns-are-same-as-known-inputs type resolution heu