pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Etsuro Fujita <efujita@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Prevent asynchronous execution of direct foreign-table modificat
Date: Thu, 13 May 2021 11:05:57 +0000
Message-ID: <E1lh9AD-0004c5-5B@gemulon.postgresql.org> (raw)

Prevent asynchronous execution of direct foreign-table modifications.

Commits 27e1f1456 and 86dc90056, which were independently discussed,
cause a crash when executing an inherited foreign UPDATE/DELETE query
with asynchronous execution enabled, where children of an Append node
that is the direct/indirect child of the ModifyTable node are rewritten
so as to modify foreign tables directly by postgresPlanDirectModify();
as in that case the direct modifications are executed asynchronously,
which is not currently supported by asynchronous execution.  Fix by
disabling asynchronous execution of the direct modifications in that
function.

Author: Etsuro Fujita
Reviewed-by: Amit Langote
Discussion: https://postgr.es/m/CAPmGK158e9sJOfuWxfn%2B0ynrspXQU3JhNjSCbaoeSzMvnga%2Bbw%40mail.gmail.com

Branch
------
master

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

Modified Files
--------------
contrib/postgres_fdw/expected/postgres_fdw.out | 55 ++++++++++++++++++++++++++
contrib/postgres_fdw/postgres_fdw.c            |  7 ++++
contrib/postgres_fdw/sql/postgres_fdw.sql      |  8 ++++
3 files changed, 70 insertions(+)



Message-ID: <E1lh9AD-0004c5-5B@gemulon.postgresql.org>
Permalink:  ../E1lh9AD-0004c5-5B@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1lh9AD-0004c5-5B@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: efujita@postgresql.org
  Subject: Re: pgsql: Prevent asynchronous execution of direct foreign-table modificat
  In-Reply-To: <E1lh9AD-0004c5-5B@gemulon.postgresql.org>
  References: <E1lh9AD-0004c5-5B@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox