pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Move per-agg and per-trans duplicate finding to the planner.
3+ messages / 3 participants
[nested] [flat]
* pgsql: Move per-agg and per-trans duplicate finding to the planner.
@ 2020-11-24 08:53 Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-11-24 10:58 ` Re: pgsql: Move per-agg and per-trans duplicate finding to the planner. Michael Paquier <michael@paquier.xyz>
0 siblings, 1 reply; 3+ messages in thread
From: Heikki Linnakangas @ 2020-11-24 08:53 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Move per-agg and per-trans duplicate finding to the planner.
This has the advantage that the cost estimates for aggregates can count
the number of calls to transition and final functions correctly.
Bump catalog version, because views can contain Aggrefs.
Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/b2e3536b-1dbc-8303-c97e-89cb0b4a9a48%40iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0a2bc5d61e713e3fe72438f020eea5fcc90b0f0b
Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 12 +-
src/backend/executor/execExpr.c | 10 +-
src/backend/executor/execExprInterp.c | 6 +-
src/backend/executor/nodeAgg.c | 364 +++---------
src/backend/jit/llvm/llvmjit_expr.c | 11 +-
src/backend/nodes/copyfuncs.c | 2 +
src/backend/nodes/equalfuncs.c | 2 +
src/backend/nodes/outfuncs.c | 2 +
src/backend/nodes/readfuncs.c | 2 +
src/backend/optimizer/path/costsize.c | 3 +-
src/backend/optimizer/plan/planagg.c | 69 +--
src/backend/optimizer/plan/planner.c | 66 +--
src/backend/optimizer/prep/Makefile | 1 +
src/backend/optimizer/prep/prepagg.c | 678 ++++++++++++++++++++++
src/backend/optimizer/util/clauses.c | 288 ---------
src/backend/parser/parse_func.c | 2 +
src/backend/utils/adt/selfuncs.c | 12 +-
src/include/catalog/catversion.h | 2 +-
src/include/executor/execExpr.h | 3 +-
src/include/nodes/execnodes.h | 11 -
src/include/nodes/nodes.h | 3 +-
src/include/nodes/pathnodes.h | 80 ++-
src/include/nodes/primnodes.h | 8 +
src/include/optimizer/clauses.h | 2 -
src/include/optimizer/prep.h | 8 +
src/include/utils/selfuncs.h | 2 +-
src/test/regress/expected/partition_aggregate.out | 41 +-
src/test/regress/sql/partition_aggregate.sql | 9 +-
src/tools/pgindent/typedefs.list | 1 -
29 files changed, 954 insertions(+), 746 deletions(-)
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Move per-agg and per-trans duplicate finding to the planner.
2020-11-24 08:53 pgsql: Move per-agg and per-trans duplicate finding to the planner. Heikki Linnakangas <heikki.linnakangas@iki.fi>
@ 2020-11-24 10:58 ` Michael Paquier <michael@paquier.xyz>
2020-11-24 11:40 ` Re: pgsql: Move per-agg and per-trans duplicate finding to the planner. Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Paquier @ 2020-11-24 10:58 UTC (permalink / raw)
To: Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers@lists.postgresql.org
Hi Heikki,
On Tue, Nov 24, 2020 at 08:53:42AM +0000, Heikki Linnakangas wrote:
> Move per-agg and per-trans duplicate finding to the planner.
>
> This has the advantage that the cost estimates for aggregates can count
> the number of calls to transition and final functions correctly.
>
> Bump catalog version, because views can contain Aggrefs.
>
> Reviewed-by: Andres Freund
> Discussion: https://www.postgresql.org/message-id/b2e3536b-1dbc-8303-c97e-89cb0b4a9a48%40iki.fi
The regression tests of sepgsql are broken:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2020-11-24%2009%3A52%3A17
Reordering the lines in the output file would fix the issue.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: pgsql: Move per-agg and per-trans duplicate finding to the planner.
2020-11-24 08:53 pgsql: Move per-agg and per-trans duplicate finding to the planner. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-11-24 10:58 ` Re: pgsql: Move per-agg and per-trans duplicate finding to the planner. Michael Paquier <michael@paquier.xyz>
@ 2020-11-24 11:40 ` Heikki Linnakangas <hlinnaka@iki.fi>
0 siblings, 0 replies; 3+ messages in thread
From: Heikki Linnakangas @ 2020-11-24 11:40 UTC (permalink / raw)
To: Michael Paquier <michael@paquier.xyz>; Heikki Linnakangas <heikki.linnakangas@iki.fi>; +Cc: pgsql-committers@lists.postgresql.org
On 24/11/2020 12:58, Michael Paquier wrote:
> The regression tests of sepgsql are broken:
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=rhinoceros&dt=2020-11-24%2009%3A52%3A17
>
> Reordering the lines in the output file would fix the issue.
Yep, fixed, thanks!
- Heikki
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2020-11-24 11:40 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 08:53 pgsql: Move per-agg and per-trans duplicate finding to the planner. Heikki Linnakangas <heikki.linnakangas@iki.fi>
2020-11-24 10:58 ` Michael Paquier <michael@paquier.xyz>
2020-11-24 11:40 ` Heikki Linnakangas <hlinnaka@iki.fi>
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