]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Force parallelism in partition_aggregate
authorTomas Vondra <tomas.vondra@postgresql.org>
Sun, 4 Sep 2022 21:37:42 +0000 (23:37 +0200)
committerTomas Vondra <tomas.vondra@postgresql.org>
Sun, 4 Sep 2022 21:37:42 +0000 (23:37 +0200)
commit01474f56981a4b27fe5e304a61b0fce2ac025c69
treeb8d271bac014a5d4f632b6bc5345d0c052616ea4
parent4209126655ccac68fe582c5fea3e638a4a1c503c
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
src/test/regress/expected/partition_aggregate.out
src/test/regress/sql/partition_aggregate.sql