postgresql/src
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
..
backend Consider unsorted paths in generate_useful_gather_paths 2020-12-21 18:10:20 +01:00
bin Fixes for pg_dump.c regarding multiranges 2020-12-20 08:14:35 +03:00
common Refactor logic to check for ASCII-only characters in string 2020-12-21 09:37:11 +09:00
fe_utils Remove incorrect %s in string 2020-11-09 10:38:22 +01:00
include Refactor logic to check for ASCII-only characters in string 2020-12-21 09:37:11 +09:00
interfaces Move SHA2 routines to a new generic API layer for crypto hashes 2020-12-02 10:37:20 +09:00
makefiles Remove libpq.rc, use win32ver.rc for libpq 2020-01-15 15:06:12 +01:00
pl Multirange datatypes 2020-12-20 07:20:33 +03:00
port Remove ability to independently select random number generator 2020-11-20 13:57:33 +01:00
template On macOS, use -isysroot in link steps as well as compile steps. 2020-11-20 00:07:09 -05:00
test Consider unsorted paths in generate_useful_gather_paths 2020-12-21 18:10:20 +01:00
timezone Improve hash_create()'s API for some added robustness. 2020-12-15 11:38:53 -05:00
tools Multirange datatypes 2020-12-20 07:20:33 +03:00
tutorial Remove support for postfix (right-unary) operators. 2020-09-17 19:38:05 -04:00
.gitignore
DEVELOPERS
Makefile Remove the option to build thread_test.c outside configure. 2020-10-21 12:08:48 -04:00
Makefile.global.in Split Makefile symbol CFLAGS_VECTOR into two symbols. 2020-09-06 21:28:16 -04:00
Makefile.shlib Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nls-global.mk NLS: Fix backend gettext triggers 2019-09-23 09:04:20 +02:00