pgsql: Minor code cleanup in asynchronous execution support.

From: Etsuro Fujita <efujita(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Minor code cleanup in asynchronous execution support.
Date: 2021-04-23 03:05:07
Message-ID: E1lZm7v-0008Bf-3S@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bb684c82f73316b88f9bcb321128a4347b5206fe

Modified Files
--------------
contrib/postgres_fdw/postgres_fdw.c | 8 +++++++-
src/backend/executor/nodeAppend.c | 18 +++++++++++++-----
2 files changed, 20 insertions(+), 6 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2021-04-23 04:26:09 pgsql: Remove use of [U]INT64_FORMAT in some translatable strings
Previous Message Tom Lane 2021-04-22 21:31:11 pgsql: Don't crash on reference to an un-available system column.