postgresql/src/include/storage
Etsuro Fujita 27e1f14563 Add support for asynchronous execution.
This implements asynchronous execution, which runs multiple parts of a
non-parallel-aware Append concurrently rather than serially to improve
performance when possible.  Currently, the only node type that can be
run concurrently is a ForeignScan that is an immediate child of such an
Append.  In the case where such ForeignScans access data on different
remote servers, this would run those ForeignScans concurrently, and
overlap the remote operations to be performed simultaneously, so it'll
improve the performance especially when the operations involve
time-consuming ones such as remote join and remote aggregation.

We may extend this to other node types such as joins or aggregates over
ForeignScans in the future.

This also adds the support for postgres_fdw, which is enabled by the
table-level/server-level option "async_capable".  The default is false.

Robert Haas, Kyotaro Horiguchi, Thomas Munro, and myself.  This commit
is mostly based on the patch proposed by Robert Haas, but also uses
stuff from the patch proposed by Kyotaro Horiguchi and from the patch
proposed by Thomas Munro.  Reviewed by Kyotaro Horiguchi, Konstantin
Knizhnik, Andrey Lepikhov, Movead Li, Thomas Munro, Justin Pryzby, and
others.

Discussion: https://postgr.es/m/CA%2BTgmoaXQEt4tZ03FtQhnzeDEMzBck%2BLrni0UWHVVgOTnA6C1w%40mail.gmail.com
Discussion: https://postgr.es/m/CA%2BhUKGLBRyu0rHrDCMC4%3DRn3252gogyp1SjOgG8SEKKZv%3DFwfQ%40mail.gmail.com
Discussion: https://postgr.es/m/20200228.170650.667613673625155850.horikyota.ntt%40gmail.com
2021-03-31 18:45:00 +09:00
..
.gitignore When trace_lwlocks is used, identify individual lwlocks by name. 2015-09-11 14:01:39 -04:00
backendid.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
barrier.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
block.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
buf.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
buf_internals.h Improve comment for struct BufferDesc. 2021-03-11 16:38:45 +13:00
buffile.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
bufmgr.h Optimize DropRelFileNodesAllBuffers() for recovery. 2021-01-13 07:46:11 +05:30
bufpage.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
checksum.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
checksum_impl.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
condition_variable.h Replace buffer I/O locks with condition variables. 2021-03-11 10:36:17 +13:00
copydir.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
dsm.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
dsm_impl.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
fd.h Provide recovery_init_sync_method=syncfs. 2021-03-20 12:07:28 +13:00
freespace.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
fsm_internals.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
indexfsm.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
ipc.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
item.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
itemid.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
itemptr.h Add TID Range Scans to support efficient scanning ranges of TIDs 2021-02-27 22:59:36 +13:00
large_object.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
latch.h Add support for asynchronous execution. 2021-03-31 18:45:00 +09:00
lmgr.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
lock.h Display the time when the process started waiting for the lock, in pg_locks, take 2 2021-02-15 15:13:37 +09:00
lockdefs.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
lwlock.h Replace buffer I/O locks with condition variables. 2021-03-11 10:36:17 +13:00
md.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
off.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_sema.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pg_shmem.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
pmsignal.h Make archiver process an auxiliary process. 2021-03-15 13:13:14 +09:00
predicate.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
predicate_internals.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
proc.h Make archiver process an auxiliary process. 2021-03-15 13:13:14 +09:00
procarray.h Detect the deadlocks between backends and the startup process. 2021-01-06 12:39:18 +09:00
proclist.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
proclist_types.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
procsignal.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
reinit.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
relfilenode.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
s_lock.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sharedfileset.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
shm_mq.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
shm_toc.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
shmem.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sinval.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sinvaladt.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
smgr.h Optimize DropRelFileNodeBuffers() for recovery. 2021-01-12 07:45:40 +05:30
spin.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
standby.h Use full 64-bit XIDs in deleted nbtree pages. 2021-02-24 18:41:34 -08:00
standbydefs.h Update copyright for 2021 2021-01-02 13:06:25 -05:00
sync.h Update copyright for 2021 2021-01-02 13:06:25 -05:00