pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Force parallelism in partition_aggregate
2+ messages / 1 participants
[nested] [flat]

* pgsql: Force parallelism in partition_aggregate
@ 2022-09-04 22:08 Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2022-09-04 22:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Force parallelism in partition_aggregate

Commit db0d67db2 tweaked sort costing, which however resulted in a
couple plan changes in our regression tests. Most of the new plans were
fine, but partition_aggregate were meant to test parallel plans and the
new plans were serial.

Fix that by lowering parallel_setup_cost to 0, which is enough to switch
to the parallel plan again.

Report and patch by David Rowley.

Author: David Rowley
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/CAApHDvpVFgWzXdtUQkjyOPhNrNvumRi_=ftgS79KeAZ92tnHKQ@mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/01474f56981a4b27fe5e304a61b0fce2ac025c69

Modified Files
--------------
src/test/regress/expected/partition_aggregate.out | 114 ++++++++++++----------
src/test/regress/sql/partition_aggregate.sql      |   3 +
2 files changed, 63 insertions(+), 54 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Force parallelism in partition_aggregate
@ 2022-09-04 22:13 Tomas Vondra <tomas.vondra@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Tomas Vondra @ 2022-09-04 22:13 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Force parallelism in partition_aggregate

Commit db0d67db2 tweaked sort costing, which however resulted in a
couple plan changes in our regression tests. Most of the new plans were
fine, but partition_aggregate were meant to test parallel plans and the
new plans were serial.

Fix that by lowering parallel_setup_cost to 0, which is enough to switch
to the parallel plan again.

Commit 1349d2790 already made the plans parallel again, but do this
anyway to keep the tests in sync with 15, to make backpatching simpler.

Report and patch by David Rowley.

Author: David Rowley
Reviewed-by: Tomas Vondra
Discussion: https://postgr.es/m/CAApHDvpVFgWzXdtUQkjyOPhNrNvumRi_=ftgS79KeAZ92tnHKQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2fe6b2a806f20f2dbf02c6e79783dbc2777a1840

Modified Files
--------------
src/test/regress/expected/partition_aggregate.out | 2 ++
src/test/regress/sql/partition_aggregate.sql      | 3 +++
2 files changed, 5 insertions(+)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2022-09-04 22:13 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-09-04 22:08 pgsql: Force parallelism in partition_aggregate Tomas Vondra <tomas.vondra@postgresql.org>
2022-09-04 22:13 pgsql: Force parallelism in partition_aggregate Tomas Vondra <tomas.vondra@postgresql.org>

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