pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve documentation about array concat operator vs. underlying 5+ messages / 1 participants [nested] [flat]
* pgsql: Improve documentation about array concat operator vs. underlying @ 2015-07-09 22:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-07-09 22:50 UTC (permalink / raw) To: pgsql-committers Improve documentation about array concat operator vs. underlying functions. The documentation implied that there was seldom any reason to use the array_append, array_prepend, and array_cat functions directly. But that's not really true, because they can help make it clear which case is meant, which the || operator can't do since it's overloaded to represent all three cases. Add some discussion and examples illustrating the potentially confusing behavior that can ensue if the parser misinterprets what was meant. Per a complaint from Michael Herold. Back-patch to 9.2, which is where || started to behave this way. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/e4f29ce32391525629c75aade86f2f939956c69c Modified Files -------------- doc/src/sgml/array.sgml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Improve documentation about array concat operator vs. underlying @ 2015-07-09 22:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-07-09 22:50 UTC (permalink / raw) To: pgsql-committers Improve documentation about array concat operator vs. underlying functions. The documentation implied that there was seldom any reason to use the array_append, array_prepend, and array_cat functions directly. But that's not really true, because they can help make it clear which case is meant, which the || operator can't do since it's overloaded to represent all three cases. Add some discussion and examples illustrating the potentially confusing behavior that can ensue if the parser misinterprets what was meant. Per a complaint from Michael Herold. Back-patch to 9.2, which is where || started to behave this way. Branch ------ REL9_5_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/5acc7730c8c93d5755bc6a0bf36df407f48b2b27 Modified Files -------------- doc/src/sgml/array.sgml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Improve documentation about array concat operator vs. underlying @ 2015-07-09 22:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-07-09 22:50 UTC (permalink / raw) To: pgsql-committers Improve documentation about array concat operator vs. underlying functions. The documentation implied that there was seldom any reason to use the array_append, array_prepend, and array_cat functions directly. But that's not really true, because they can help make it clear which case is meant, which the || operator can't do since it's overloaded to represent all three cases. Add some discussion and examples illustrating the potentially confusing behavior that can ensue if the parser misinterprets what was meant. Per a complaint from Michael Herold. Back-patch to 9.2, which is where || started to behave this way. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/8989a52657332c98fab56de6b86c41d93ea0c621 Modified Files -------------- doc/src/sgml/array.sgml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Improve documentation about array concat operator vs. underlying @ 2015-07-09 22:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-07-09 22:50 UTC (permalink / raw) To: pgsql-committers Improve documentation about array concat operator vs. underlying functions. The documentation implied that there was seldom any reason to use the array_append, array_prepend, and array_cat functions directly. But that's not really true, because they can help make it clear which case is meant, which the || operator can't do since it's overloaded to represent all three cases. Add some discussion and examples illustrating the potentially confusing behavior that can ensue if the parser misinterprets what was meant. Per a complaint from Michael Herold. Back-patch to 9.2, which is where || started to behave this way. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0a9b0428f03379931aa6c1866526a975ae2d59b2 Modified Files -------------- doc/src/sgml/array.sgml | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
* pgsql: Improve documentation about array concat operator vs. underlying @ 2015-07-09 22:50 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2015-07-09 22:50 UTC (permalink / raw) To: pgsql-committers Improve documentation about array concat operator vs. underlying functions. The documentation implied that there was seldom any reason to use the array_append, array_prepend, and array_cat functions directly. But that's not really true, because they can help make it clear which case is meant, which the || operator can't do since it's overloaded to represent all three cases. Add some discussion and examples illustrating the potentially confusing behavior that can ensue if the parser misinterprets what was meant. Per a complaint from Michael Herold. Back-patch to 9.2, which is where || started to behave this way. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/349ce2870f1039b83811af0c640fe58efe16e3f7 Modified Files -------------- doc/src/sgml/array.sgml | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2015-07-09 22:50 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2015-07-09 22:50 pgsql: Improve documentation about array concat operator vs. underlying Tom Lane <tgl@sss.pgh.pa.us> 2015-07-09 22:50 pgsql: Improve documentation about array concat operator vs. underlying Tom Lane <tgl@sss.pgh.pa.us> 2015-07-09 22:50 pgsql: Improve documentation about array concat operator vs. underlying Tom Lane <tgl@sss.pgh.pa.us> 2015-07-09 22:50 pgsql: Improve documentation about array concat operator vs. underlying Tom Lane <tgl@sss.pgh.pa.us> 2015-07-09 22:50 pgsql: Improve documentation about array concat operator vs. underlying 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