diff options
author | David Rowley <drowley@postgresql.org> | 2024-01-31 10:10:59 +1300 |
---|---|---|
committer | David Rowley <drowley@postgresql.org> | 2024-01-31 10:10:59 +1300 |
commit | 8ee9c250875157d42f7ed53508e239d23ce514fb (patch) | |
tree | 836e8a084132aaabd6732ebd921333557de861be /src/backend/access/transam/xlogutils.c | |
parent | 7b745d85b80d4492c4df8d9769592c7aad1f63d2 (diff) | |
download | postgresql-8ee9c250875157d42f7ed53508e239d23ce514fb.tar.gz postgresql-8ee9c250875157d42f7ed53508e239d23ce514fb.zip |
Simplify partial path generation in GROUP BY/ORDER BY
Here we consolidate the generation of partial sort and partial incremental
sort paths in a similar way to what was done in 4a29eabd1. Since the cost
penalty for incremental sort was removed by that commit, there's no
point in creating a sort path on the cheapest partial path if an
incremental sort could be done instead.
This has the added benefit of reducing the amount of code required to
build these paths.
Author: Richard Guo
Reviewed-by: Etsuro Fujita, Shubham Khanna, David Rowley
Discussion: https://postgr.es/m/CAMbWs49PaKxBZU9cN7k3DKB7id+YfGfOfS9H_Fo5tkqPMt=fDg@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions