pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex 7+ messages / 1 participants [nested] [flat]
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/84aad60b9cdade0a9d55f938bec92d788e2c54e9 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b3c762a45a14e119acf371f60eb01c8d3607f714 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/b75667d84fb3f96418dcef4e464ad0dab97237b6 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/02f7b7ab75680440695a1e205cbb6636551b6013 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b6423e92abfadaa1ed9642319872aa1654403cd6 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/750d72fde6233b4ccad5f5416b68042169c97b61 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex @ 2019-11-11 19:40 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-11-11 19:40 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Doc: fix ancient mistake, or at least obsolete info, in rules example. The example of expansion of multiple views claimed that the resulting subquery nest would not get fully flattened because of an aggregate function. There's no aggregate in the example, though, only a user defined function confusingly named MIN(). In a modern server, the reason for the non-flattening is that MIN() is volatile, but I'm unsure whether that was true back when this text was written. Let's reduce the confusion level by using LEAST() instead (which we didn't have at the time this example was created). And then we can just say that the planner will flatten the sub-queries, so the rewrite system doesn't have to. Noted by Paul Jungwirth. This text is old enough to vote, so back-patch to all supported branches. Discussion: https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/18831346d4e607d35ff338c6e9eec0319cff8d72 Modified Files -------------- doc/src/sgml/rules.sgml | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-11-11 19:40 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex Tom Lane <tgl@sss.pgh.pa.us> 2019-11-11 19:40 pgsql: Doc: fix ancient mistake, or at least obsolete info, in rules ex 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