postgresql/src/backend/optimizer/util
Robert Haas 355d3993c5 Add a Gather Merge executor node.
Like Gather, we spawn multiple workers and run the same plan in each
one; however, Gather Merge is used when each worker produces the same
output ordering and we want to preserve that output ordering while
merging together the streams of tuples from various workers.  (In a
way, Gather Merge is like a hybrid of Gather and MergeAppend.)

This works out to a win if it saves us from having to perform an
expensive Sort.  In cases where only a small amount of data would need
to be sorted, it may actually be faster to use a regular Gather node
and then sort the results afterward, because Gather Merge sometimes
needs to wait synchronously for tuples whereas a pure Gather generally
doesn't.  But if this avoids an expensive sort then it's a win.

Rushabh Lathia, reviewed and tested by Amit Kapila, Thomas Munro,
and Neha Sharma, and reviewed and revised by me.

Discussion: http://postgr.es/m/CAGPqQf09oPX-cQRpBKS0Gq49Z+m6KBxgxd_p9gX8CKk_d75HoQ@mail.gmail.com
2017-03-09 07:49:29 -05:00
..
Makefile Extract restriction OR clauses whether or not they are indexable. 2013-12-30 12:24:37 -05:00
clauses.c Make more use of castNode() 2017-02-21 11:59:09 -05:00
joininfo.c Fix typos in comments. 2017-02-06 11:33:58 +02:00
orclauses.c Make more use of castNode() 2017-02-21 11:59:09 -05:00
pathnode.c Add a Gather Merge executor node. 2017-03-09 07:49:29 -05:00
placeholder.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
plancat.c Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
predtest.c Remove obsoleted code relating to targetlist SRF evaluation. 2017-01-19 14:40:41 -08:00
relnode.c Support XMLTABLE query expression 2017-03-08 12:40:26 -03:00
restrictinfo.c Make more use of castNode() 2017-02-21 11:59:09 -05:00
tlist.c Fix mishandling of tSRFs at different nesting levels. 2017-02-02 16:38:18 -05:00
var.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00