Re: pgsql: postgres_fdw: Inherit the local transaction's access/deferrable

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Etsuro Fujita <efujita@postgresql.org>, pgsql-hackers@lists.postgresql.org
Date: 2025-06-02T03:33:23Z
Lists: pgsql-hackers
On Mon, Jun 02, 2025 at 12:03:50PM +0900, Fujii Masao wrote:
> I'm not sure this change should be considered a bug fix,
> since the current behavior of postgres_fdw with a local read-only
> transaction isn't clearly documented. Some users might see this
> as a behavioral change rather than a fix. Anyway if we go with it,
> shouldn't we document the change in the v18 release notes?

After going through the thread and the commit, I have to admit that I
was surprised to see this applied on HEAD now that we are in feature
freeze.  This is a behavior change.  Perhaps this could be done once
v19 happens, still it's rather unclear if the new behavior is better
than the previous one.
--
Michael

Commits

  1. postgres_fdw: Inherit the local transaction's access/deferrable modes.

  2. Revert "postgres_fdw: Inherit the local transaction's access/deferrable modes."