]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Doc: add example of type resolution in nested UNIONs.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 20:15:16 +0000 (16:15 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Mar 2018 20:15:16 +0000 (16:15 -0400)
commit915bed756da0a91cad589dd9c213b924ace5a17a
treecae361d4aa483e776908cc3835db8fd3496fba3a
parente66f78e59bd31822e24a5f864e761fbe643b7e08
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
doc/src/sgml/typeconv.sgml