pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix bugs in polymorphic-argument resolution for multiranges.
Date: Tue, 27 Jul 2021 19:02:01 +0000
Message-ID: <E1m8SL3-0005WP-P1@gemulon.postgresql.org> (raw)

Fix bugs in polymorphic-argument resolution for multiranges.

We failed to deal with an UNKNOWN-type input for
anycompatiblemultirange; that should throw an error indicating
that we don't know how to resolve the multirange type.

We also failed to infer the type of an anycompatiblerange output
from an anycompatiblemultirange input or vice versa.

Per bug #17066 from Alexander Lakhin.  Back-patch to v14
where multiranges were added.

Discussion: https://postgr.es/m/17066-16a37f6223a8470b@postgresql.org

Branch
------
REL_14_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b7ea0e8c41f1e512923267a57cd08df63115b783

Modified Files
--------------
src/backend/parser/parse_coerce.c          | 316 ++++++++++++++++-------------
src/test/regress/expected/polymorphism.out |  68 ++++++-
src/test/regress/expected/rangefuncs.out   |   2 +-
src/test/regress/sql/polymorphism.sql      |  48 +++++
4 files changed, 293 insertions(+), 141 deletions(-)



view thread (2+ messages)  latest in thread

Message-ID: <E1m8SL3-0005WP-P1@gemulon.postgresql.org>
Permalink:  ../E1m8SL3-0005WP-P1@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m8SL3-0005WP-P1@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix bugs in polymorphic-argument resolution for multiranges.
  In-Reply-To: <E1m8SL3-0005WP-P1@gemulon.postgresql.org>
  References: <E1m8SL3-0005WP-P1@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox