postgresql/src/backend
Robert Haas bc7fcab5e3 Read from the same worker repeatedly until it returns no tuple.
The original coding read tuples from workers in round-robin fashion,
but performance testing shows that it works much better to read enough
to empty one queue before moving on to the next.  I believe the
reason for this is that, with the old approach, we could easily wake
up a worker repeatedly to write only one new tuple into the shm_mq
each time.  With this approach, by the time the process gets scheduled,
it has a decent chance of being able to fill the entire buffer in
one go.

Patch by me.  Dilip Kumar helped with performance testing.
2015-12-23 14:06:52 -05:00
..
access Fix typo in comment. 2015-12-18 12:03:15 -05:00
bootstrap pgindent run for 9.5 2015-05-23 21:35:49 -04:00
catalog Adjust behavior of single-user -j mode for better initdb error reporting. 2015-12-17 19:34:15 -05:00
commands Rework internals of changing a type's ownership 2015-12-17 14:25:41 -03:00
executor Read from the same worker repeatedly until it returns no tuple. 2015-12-23 14:06:52 -05:00
foreign Code review for foreign/custom join pushdown patch. 2015-05-10 14:36:36 -04:00
lib Avoid use of float arithmetic in bipartite_match.c. 2015-08-23 13:02:18 -04:00
libpq Message improvements 2015-11-16 21:39:23 -05:00
main Revoke support for strxfrm() that write past the specified array length. 2015-07-08 20:44:21 -04:00
nodes Remove unnecessary escaping in C character literals 2015-12-22 22:43:46 -05:00
optimizer Change Gather not to use a physical tlist. 2015-12-23 13:41:06 -05:00
parser Allow omitting one or both boundaries in an array slice specifier. 2015-12-22 21:05:29 -05:00
po Translation updates 2015-06-28 23:56:55 -04:00
port On Windows, ensure shared memory handle gets closed if not being used. 2015-10-13 11:21:33 -04:00
postmaster Message improvements 2015-11-16 21:39:23 -05:00
regex Fix enforcement of restrictions inside regexp lookaround constraints. 2015-11-07 12:43:24 -05:00
replication Remove duplicate word. 2015-12-18 12:43:52 -05:00
rewrite Make viewquery a copy in rewriteTargetView() 2015-12-21 10:34:14 -05:00
snowball Adjust behavior of single-user -j mode for better initdb error reporting. 2015-12-17 19:34:15 -05:00
storage Teach mdnblocks() not to create zero-length files. 2015-12-15 13:57:45 -05:00
tcop Adjust behavior of single-user -j mode for better initdb error reporting. 2015-12-17 19:34:15 -05:00
tsearch pgindent run for 9.5 2015-05-23 21:35:49 -04:00
utils Remove unnecessary escaping in C character literals 2015-12-22 22:43:46 -05:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
Makefile Revert "Have dtrace depend on object files directly, not objfiles.txt" 2015-10-15 13:16:03 -04:00
common.mk Remove maintainer-check target, fold into normal build 2013-10-10 20:11:56 -04:00
nls.mk Remove trailing slashes from directories in find command 2015-09-18 22:06:54 -04:00