postgresql/src/backend
Robert Haas 25dc142a49 Avoid GatherMerge crash when there are no workers.
It's unnecessary to return an actual slot when we have no tuple.
We can just return NULL, which avoids the risk of indexing into an
array that might not contain any elements.

Rushabh Lathia, per a report from Tomas Vondra

Discussion: http://postgr.es/m/6ecd6f17-0dcf-1de7-ded8-0de7db1ddc88@2ndquadrant.com
2017-03-31 21:15:05 -04:00
..
access Don't use bgw_main even to specify in-core bgworker entrypoints. 2017-03-31 20:43:32 -04:00
bootstrap Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
catalog Don't allocate storage for partitioned tables. 2017-03-31 16:28:51 -04:00
commands For foreign keys, check REFERENCES privilege only on the referenced table. 2017-03-31 18:11:30 -04:00
executor Avoid GatherMerge crash when there are no workers. 2017-03-31 21:15:05 -04:00
foreign Spelling fixes in code comments 2017-03-14 12:58:39 -04:00
lib Support hashed aggregation with grouping sets. 2017-03-27 04:20:54 +01:00
libpq Fix unportable disregard of alignment requirements in RADIUS code. 2017-03-26 17:35:35 -04:00
main Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
nodes Fix parallel query so it doesn't spoil row estimates above Gather. 2017-03-31 21:01:20 -04:00
optimizer Fix parallel query so it doesn't spoil row estimates above Gather. 2017-03-31 21:01:20 -04:00
parser Revert "Allow ON CONFLICT .. DO NOTHING on a partitioned table." 2017-03-31 16:48:21 -04:00
po Translation updates 2016-08-08 11:08:00 -04:00
port Fix WaitEventSetWait() to handle write-ready waits properly on Windows. 2017-03-17 14:58:06 -04:00
postmaster Don't use bgw_main even to specify in-core bgworker entrypoints. 2017-03-31 20:43:32 -04:00
regex ICU support 2017-03-23 15:28:48 -04:00
replication Don't use bgw_main even to specify in-core bgworker entrypoints. 2017-03-31 20:43:32 -04:00
rewrite Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
snowball Add ICU_FLAGS to one more place 2017-03-23 16:53:10 -04:00
statistics Fix uninitialized memory propagation mistakes 2017-03-27 14:52:19 -03:00
storage Allow DSM segments to be created as pinned 2017-03-28 19:44:30 -03:00
tcop Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
tsearch Full Text Search support for json and jsonb 2017-03-31 14:26:03 -04:00
utils Fix typos. 2017-03-31 20:18:11 -04:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
common.mk ICU support 2017-03-23 15:28:48 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00