Minor code cleanup in asynchronous execution support.
authorEtsuro Fujita <efujita@postgresql.org>
Fri, 23 Apr 2021 03:00:00 +0000 (12:00 +0900)
committerEtsuro Fujita <efujita@postgresql.org>
Fri, 23 Apr 2021 03:00:00 +0000 (12:00 +0900)
commitbb684c82f73316b88f9bcb321128a4347b5206fe
tree510fc2a7ece07b3df91815242e857aa0d3974a4b
parentd479d00285255d422a2b38f1cfaa35808968a08c
Minor code cleanup in asynchronous execution support.

This is cleanup for commit 27e1f1456:

* ExecAppendAsyncEventWait(), which was modified a bit further by commit
  a8af856d3, duplicated the same nevents calculation.  Simplify the code
  a little bit to avoid the duplication.  Update comments there.
* Add an assertion to ExecAppendAsyncRequest().
* Update a comment about merging the async_capable options from input
  relations in merge_fdw_options(), per complaint from Kyotaro Horiguchi.
* Add a comment for fetch_more_data_begin().

Author: Etsuro Fujita
Discussion: https://postgr.es/m/CAPmGK1637W30Wx3MnrReewhafn6F_0J76mrJGoFXFnpPq4QfvA%40mail.gmail.com
contrib/postgres_fdw/postgres_fdw.c
src/backend/executor/nodeAppend.c