pgsql: postgres_fdw: Minor cleanup for pgfdw_abort_cleanup().

Поиск
Список
Период
Сортировка
От Etsuro Fujita
Тема pgsql: postgres_fdw: Minor cleanup for pgfdw_abort_cleanup().
Дата
Msg-id E1nXdZG-001HUq-Tz@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
postgres_fdw: Minor cleanup for pgfdw_abort_cleanup().

Commit 85c696112 introduced this function to deduplicate code in the
transaction callback functions, but the SQL command passed as an
argument to it was useless when it returned before aborting a remote
transaction using the command.  Modify pgfdw_abort_cleanup() so that it
constructs the command when/if necessary, as before, removing the
argument from it.  Also update comments in pgfdw_abort_cleanup() and one
of the calling functions.

Etsuro Fujita, reviewed by David Zhang.

Discussion: https://postgr.es/m/CAPmGK158hrd%3DZfXmgkmNFHivgh18e4oE2Gz151C2Q4OBDjZ08A%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/56566835039ac5eed70f188518cef1a7ea0971b2

Modified Files
--------------
contrib/postgres_fdw/connection.c | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix typos in standby.c
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Refactor DLSUFFIX handling