Re: Add proper planner support for ORDER BY / DISTINCT aggregates
Ranier Vilela <ranier.vf@gmail.com>
From: Ranier Vilela <ranier.vf@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-14T01:45:22Z
Lists: pgsql-hackers
Em ter., 13 de jul. de 2021 às 22:15, David Rowley <dgrowleyml@gmail.com> escreveu: > On Tue, 13 Jul 2021 at 23:45, Ranier Vilela <ranier.vf@gmail.com> wrote: > > The question not answered is if *argno* can '>=' that > pertrans->numTransInputs, > > before entering the loop? > > If *can*, the loop might be useless in that case. > > > >> > >> > >> Note that we're doing argno++ inside the loop. > > > > Another question is, if *argno* can '>' that pertrans->numTransInputs, > > before the loop, the test will fail? > > if (argno == pertrans->numTransInputs) > > argno is *always* 0 before the loop starts. > Good. Thanks. regards, Ranier Vilela
Commits
-
Don't presort ORDER BY/DISTINCT Aggrefs with volatile functions
- da5800d5fa63 16.0 landed
-
Add enable_presorted_aggregate GUC
- 3226f47282a0 16.0 landed
-
Remove pessimistic cost penalization from Incremental Sort
- 4a29eabd1d91 16.0 landed
-
Fix hypothetical problem passing the wrong GROUP BY pathkeys
- af7d270dd3c7 16.0 landed
-
Remove unused fields from ExprEvalStep
- 9fc1776dda9f 16.0 landed
-
Improve performance of ORDER BY / DISTINCT aggregates
- 1349d2790bf4 16.0 landed
-
Refactor function parse_subscription_options.
- 8aafb0261675 15.0 cited