pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Re-allow SRFs and window functions within sub-selects within agg 5+ messages / 1 participants [nested] [flat]
* pgsql: Re-allow SRFs and window functions within sub-selects within agg @ 2017-06-27 21:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-06-27 21:51 UTC (permalink / raw) To: pgsql-committers Re-allow SRFs and window functions within sub-selects within aggregates. check_agg_arguments_walker threw an error upon seeing a SRF or window function, but that is too aggressive: if the function is within a sub-select then it's perfectly fine. I broke the SRF case in commit 0436f6bde by copying the logic for window functions ... but that was broken too, and had been since commit eaccfded9. Repair both cases in HEAD, and the window function case back to 9.3. 9.2 gets this right. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/9c7dc89282b3dac5685c39d4d792b02ca573c2d3 Modified Files -------------- src/backend/parser/parse_agg.c | 37 ++++++++++++++++++++++--------------- src/test/regress/expected/tsrf.out | 14 ++++++++++++++ src/test/regress/sql/tsrf.sql | 6 ++++++ 3 files changed, 42 insertions(+), 15 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: Re-allow SRFs and window functions within sub-selects within agg @ 2017-06-27 21:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-06-27 21:51 UTC (permalink / raw) To: pgsql-committers Re-allow SRFs and window functions within sub-selects within aggregates. check_agg_arguments_walker threw an error upon seeing a SRF or window function, but that is too aggressive: if the function is within a sub-select then it's perfectly fine. I broke the SRF case in commit 0436f6bde by copying the logic for window functions ... but that was broken too, and had been since commit eaccfded9. Repair both cases in HEAD, and the window function case back to 9.3. 9.2 gets this right. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3a7bd59c4496b5b9a7cec9ab6f1eb6b111a8b046 Modified Files -------------- src/backend/parser/parse_agg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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: Re-allow SRFs and window functions within sub-selects within agg @ 2017-06-27 21:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-06-27 21:51 UTC (permalink / raw) To: pgsql-committers Re-allow SRFs and window functions within sub-selects within aggregates. check_agg_arguments_walker threw an error upon seeing a SRF or window function, but that is too aggressive: if the function is within a sub-select then it's perfectly fine. I broke the SRF case in commit 0436f6bde by copying the logic for window functions ... but that was broken too, and had been since commit eaccfded9. Repair both cases in HEAD, and the window function case back to 9.3. 9.2 gets this right. Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9a2706572351d168af05216892a1f02a02c1a54f Modified Files -------------- src/backend/parser/parse_agg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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: Re-allow SRFs and window functions within sub-selects within agg @ 2017-06-27 21:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-06-27 21:51 UTC (permalink / raw) To: pgsql-committers Re-allow SRFs and window functions within sub-selects within aggregates. check_agg_arguments_walker threw an error upon seeing a SRF or window function, but that is too aggressive: if the function is within a sub-select then it's perfectly fine. I broke the SRF case in commit 0436f6bde by copying the logic for window functions ... but that was broken too, and had been since commit eaccfded9. Repair both cases in HEAD, and the window function case back to 9.3. 9.2 gets this right. Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dc777f9db3e9a5f979f4f847c96949ca5555f355 Modified Files -------------- src/backend/parser/parse_agg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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: Re-allow SRFs and window functions within sub-selects within agg @ 2017-06-27 21:51 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 5+ messages in thread From: Tom Lane @ 2017-06-27 21:51 UTC (permalink / raw) To: pgsql-committers Re-allow SRFs and window functions within sub-selects within aggregates. check_agg_arguments_walker threw an error upon seeing a SRF or window function, but that is too aggressive: if the function is within a sub-select then it's perfectly fine. I broke the SRF case in commit 0436f6bde by copying the logic for window functions ... but that was broken too, and had been since commit eaccfded9. Repair both cases in HEAD, and the window function case back to 9.3. 9.2 gets this right. Branch ------ REL9_3_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/66dee28b40fb2c6f5875c29f2c9f9b3f8f7832ee Modified Files -------------- src/backend/parser/parse_agg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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:[~2017-06-27 21:51 UTC | newest] Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-06-27 21:51 pgsql: Re-allow SRFs and window functions within sub-selects within agg Tom Lane <tgl@sss.pgh.pa.us> 2017-06-27 21:51 pgsql: Re-allow SRFs and window functions within sub-selects within agg Tom Lane <tgl@sss.pgh.pa.us> 2017-06-27 21:51 pgsql: Re-allow SRFs and window functions within sub-selects within agg Tom Lane <tgl@sss.pgh.pa.us> 2017-06-27 21:51 pgsql: Re-allow SRFs and window functions within sub-selects within agg Tom Lane <tgl@sss.pgh.pa.us> 2017-06-27 21:51 pgsql: Re-allow SRFs and window functions within sub-selects within agg 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