1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-15 05:46:52 +03:00
Files
postgres/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
..
2015-12-18 12:03:15 -05:00
2015-05-23 21:35:49 -04:00
2015-11-16 21:39:23 -05:00
2015-06-28 23:56:55 -04:00
2015-11-16 21:39:23 -05:00
2015-12-18 12:43:52 -05:00
2015-05-23 21:35:49 -04:00