postgresql/src/backend
Tomas Vondra f4a3c0b062 Consider unsorted paths in generate_useful_gather_paths
generate_useful_gather_paths used to skip unsorted paths (without any
pathkeys), but that is unnecessary - the later code actually can handle
such paths just fine by adding a Sort node. This is clearly a thinko,
preventing construction of useful plans.

Backpatch to 13, where Incremental Sort was introduced.

Author: James Coleman
Reviewed-by: Tomas Vondra
Backpatch-through: 13
Discussion: https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs=hC0mSksZC=H5M8LSchj5e5OxpTAg@mail.gmail.com
2020-12-21 18:10:20 +01:00
..
access Revert "Get rid of the dedicated latch for signaling the startup process". 2020-12-17 18:06:51 +09:00
bootstrap Fix some stray whitespace in parser files 2020-11-11 17:37:18 +01:00
catalog Multirange datatypes 2020-12-20 07:20:33 +03:00
commands Refactor logic to check for ASCII-only characters in string 2020-12-21 09:37:11 +09:00
executor Multirange datatypes 2020-12-20 07:20:33 +03:00
foreign Small code simplifications 2020-12-03 11:44:13 +01:00
jit Support subscripting of arbitrary types, not only arrays. 2020-12-09 12:40:37 -05:00
lib
libpq Convert elog(LOG) calls to ereport() where appropriate 2020-12-04 14:25:23 +01:00
main Remove -o option to postmaster 2020-11-10 13:15:01 +01:00
nodes Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
optimizer Consider unsorted paths in generate_useful_gather_paths 2020-12-21 18:10:20 +01:00
parser Multirange datatypes 2020-12-20 07:20:33 +03:00
partitioning Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
po
port Fix -Wcast-function-type warnings on Windows/MinGW 2020-10-21 08:17:51 +02:00
postmaster Avoid memcpy() with same source and destination in pgstat_recv_replslot. 2020-12-20 12:38:32 -05:00
regex
replication Update comment atop of ReorderBufferQueueMessage(). 2020-12-19 10:08:46 +05:30
rewrite Improve wording of two error messages related to generated columns. 2020-11-23 11:15:12 -05:00
snowball
statistics Improve estimation of ANDs under ORs using extended statistics. 2020-12-08 20:10:11 +00:00
storage Revert "Get rid of the dedicated latch for signaling the startup process". 2020-12-17 18:06:51 +09:00
tcop Refactor CLUSTER and REINDEX grammar to use DefElem for option lists 2020-12-03 10:13:21 +09:00
tsearch Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
utils Fix compiler warning in multirange_constructor0() 2020-12-21 14:25:32 +03:00
.gitignore
common.mk
Makefile
nls.mk