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: Doc: add example of type resolution in nested UNIONs.
Date: Sun, 25 Mar 2018 20:15:34 +0000
Message-ID: <E1f0C3C-0002ek-3c@gemulon.postgresql.org> (raw)

Doc: add example of type resolution in nested UNIONs.

Section 10.5 didn't say explicitly that multiple UNIONs are resolved
pairwise.  Since the resolution algorithm is described as taking any
number of inputs, readers might well think that a query like
"select x union select y union select z" would be resolved by
considering x, y, and z in one resolution step.  But that's not what
happens (and I think that behavior is per SQL spec).  Add an example
clarifying this point.

Per bug #15129 from Philippe Beaudoin.

Discussion: https://postgr.es/m/152196085023.32649.9916472370480121694@wrigleys.postgresql.org

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1809d2925115fb339721161f8f932ac6cc705bad

Modified Files
--------------
doc/src/sgml/typeconv.sgml | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)



view thread (6+ messages)  latest in thread

Message-ID: <E1f0C3C-0002ek-3c@gemulon.postgresql.org>
Permalink:  ../E1f0C3C-0002ek-3c@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f0C3C-0002ek-3c@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: Doc: add example of type resolution in nested UNIONs.
  In-Reply-To: <E1f0C3C-0002ek-3c@gemulon.postgresql.org>
  References: <E1f0C3C-0002ek-3c@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