pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Improve documentation about CASE and constant subexpressions. 6+ messages / 1 participants [nested] [flat]
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/5b516835897f2a487eedacdb605ac40d52f6b484 Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 31 +++++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 7 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] 6+ messages in thread
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ REL9_0_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/0c54cb0e3a61af18ec8d528eb802dd8fc9f7d4eb Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 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] 6+ messages in thread
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/ef8472bc7adb2740010ad4fefdae63151bc66f39 Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 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] 6+ messages in thread
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/3dd740b3e688b807fd95344561d5c89c72ad5945 Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 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] 6+ messages in thread
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ REL9_1_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/789c5b0179b1c615f95689708c6edf9a68c51546 Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 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] 6+ messages in thread
* pgsql: Improve documentation about CASE and constant subexpressions. @ 2014-12-18 21:39 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 6+ messages in thread From: Tom Lane @ 2014-12-18 21:39 UTC (permalink / raw) To: pgsql-committers Improve documentation about CASE and constant subexpressions. The possibility that constant subexpressions of a CASE might be evaluated at planning time was touched on in 9.17.1 (CASE expressions), but it really ought to be explained in 4.2.14 (Expression Evaluation Rules) which is the primary discussion of such topics. Add text and an example there, and revise the <note> under CASE to link there. Back-patch to all supported branches, since it's acted like this for a long time (though 9.2+ is probably worse because of its more aggressive use of constant-folding via replanning of nominally-prepared statements). Pre-9.4, also back-patch text added in commit 0ce627d4 about CASE versus aggregate functions. Tom Lane and David Johnston, per discussion of bug #12273. Branch ------ REL9_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/2b8f74d79722ecf7c27445f088d0e50bcb81ed06 Modified Files -------------- doc/src/sgml/func.sgml | 12 +++++++----- doc/src/sgml/syntax.sgml | 31 +++++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 7 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] 6+ messages in thread
end of thread, other threads:[~2014-12-18 21:39 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. Tom Lane <tgl@sss.pgh.pa.us> 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. Tom Lane <tgl@sss.pgh.pa.us> 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. Tom Lane <tgl@sss.pgh.pa.us> 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. Tom Lane <tgl@sss.pgh.pa.us> 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. Tom Lane <tgl@sss.pgh.pa.us> 2014-12-18 21:39 pgsql: Improve documentation about CASE and constant subexpressions. 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