postgresql/src/backend/access
Robert Haas 9222c0d9ed Add new function WaitForParallelWorkersToAttach.
Once this function has been called, we know that all workers have
started and attached to their error queues -- so if any of them
subsequently exit uncleanly, we'll be sure to throw an ERROR promptly.
Otherwise, users of the ParallelContext machinery must be careful not
to wait forever for a worker that has failed to start.  Parallel query
manages to work without needing this for reasons explained in new
comments added by this patch, but it's a useful primitive for other
parallel operations, such as the pending patch to make creating a
btree index run in parallel.

Amit Kapila, revised by me.  Additional review by Peter Geoghegan.

Discussion: http://postgr.es/m/CAA4eK1+e2MzyouF5bg=OtyhDSX+=Ao=3htN=T-r_6s3gCtKFiw@mail.gmail.com
2018-02-02 09:00:59 -05:00
..
brin Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
common Avoid unnecessary use of pg_strcasecmp for already-downcased identifiers. 2018-01-26 18:25:14 -05:00
gin Replace AclObjectKind with ObjectType 2018-01-19 14:01:15 -05:00
gist Change some bogus PageGetLSN calls to BufferGetLSNAtomic 2018-01-09 17:06:31 -03:00
hash Fix possible failure to mark hash metapage dirty. 2018-02-01 15:23:45 -05:00
heap Local partitioned indexes 2018-01-19 11:49:22 -03:00
index Local partitioned indexes 2018-01-19 11:49:22 -03:00
nbtree Change some bogus PageGetLSN calls to BufferGetLSNAtomic 2018-01-09 17:06:31 -03:00
rmgrdesc Update copyright for 2018 2018-01-02 23:30:12 -05:00
spgist Update copyright for 2018 2018-01-02 23:30:12 -05:00
tablesample Update copyright for 2018 2018-01-02 23:30:12 -05:00
transam Add new function WaitForParallelWorkersToAttach. 2018-02-02 09:00:59 -05:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00