postgresql/src/backend
David Rowley 8ee9c25087 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
2024-01-31 10:10:59 +13:00
..
access Fix locking when fixing an incomplete split of a GIN internal page 2024-01-29 13:46:22 +02:00
archive Update copyright for 2024 2024-01-03 20:49:05 -05:00
backup Temporary patch to help debug pg_walsummary test failures. 2024-01-26 13:25:19 -05:00
bootstrap Make attstattarget nullable 2024-01-13 18:14:53 +01:00
catalog Add a failover option to subscriptions. 2024-01-30 16:49:28 +05:30
commands Add a failover option to subscriptions. 2024-01-30 16:49:28 +05:30
executor Delay build of Memoize hash table until executor run 2024-01-30 12:37:03 +13:00
foreign Update copyright for 2024 2024-01-03 20:49:05 -05:00
jit jit: Require at least LLVM 10. 2024-01-25 15:42:34 +13:00
lib Fix broken Bitmapset optimization in DiscreteKnapsack() 2024-01-19 10:44:36 +13:00
libpq Update copyright for 2024 2024-01-03 20:49:05 -05:00
main Remove dummy_spinlock 2024-01-25 11:43:47 +01:00
nodes Add temporal PRIMARY KEY and UNIQUE constraints 2024-01-24 16:34:37 +01:00
optimizer Simplify partial path generation in GROUP BY/ORDER BY 2024-01-31 10:10:59 +13:00
parser Add a const decoration 2024-01-25 13:34:49 +01:00
partitioning Update copyright for 2024 2024-01-03 20:49:05 -05:00
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
port Close socket in case of errors in setting non-blocking 2024-01-17 11:24:11 +01:00
postmaster Remove redundant HandleWalWriterInterrupts(). 2024-01-25 12:50:08 +09:00
regex Update copyright for 2024 2024-01-03 20:49:05 -05:00
replication Add a failover option to subscriptions. 2024-01-30 16:49:28 +05:30
rewrite Support identity columns in partitioned tables 2024-01-16 17:24:52 +01:00
snowball Add copyright notices to a few perl scripts that don't have them 2024-01-05 13:15:50 +00:00
statistics Update copyright for 2024 2024-01-03 20:49:05 -05:00
storage Split use of SerialSLRULock, creating SerialControlLock 2024-01-30 18:11:17 +01:00
tcop Error message capitalisation 2024-01-18 09:35:12 +01:00
tsearch Update copyright for 2024 2024-01-03 20:49:05 -05:00
utils Split use of SerialSLRULock, creating SerialControlLock 2024-01-30 18:11:17 +01:00
.gitignore
common.mk Blind attempt to fix LLVM dependency in the backend 2022-09-15 10:53:48 +07:00
Makefile Cross-check lists of predefined LWLocks. 2024-01-09 11:05:19 -06:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Remove distprep 2023-11-06 15:18:04 +01:00