pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Doc: add example of type resolution in nested UNIONs. 6+ messages / 1 participants [nested] [flat]
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ master Details ------- https://git.postgresql.org/pg/commitdiff/c515ff8d0a979fb553136a71388017c97785acda Modified Files -------------- doc/src/sgml/typeconv.sgml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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 ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/915bed756da0a91cad589dd9c213b924ace5a17a Modified Files -------------- doc/src/sgml/typeconv.sgml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/356f85f95cb0b0e99ce51932c2a9dbd292f0b292 Modified Files -------------- doc/src/sgml/typeconv.sgml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/428d2465c2eea7dbccca42f0e15d5f352606776e Modified Files -------------- doc/src/sgml/typeconv.sgml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Doc: add example of type resolution in nested UNIONs. @ 2018-03-25 20:15 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2018-03-25 20:15 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org 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_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b666c55b2caee0e0c1f9afc404dd00f79c98bc3d Modified Files -------------- doc/src/sgml/typeconv.sgml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2018-03-25 20:15 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us> 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us> 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us> 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us> 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us> 2018-03-25 20:15 pgsql: Doc: add example of type resolution in nested UNIONs. Tom Lane <tgl@sss.pgh.pa.us>
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