Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cf/5624~1
Choose a base ref
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5624
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Aug 6, 2025

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

    Previously, postgres_fdw always 1) opened a remote transaction in READ
    WRITE mode even when the local transaction was READ ONLY, causing a READ
    ONLY transaction using it that references a foreign table mapped to a
    remote view executing a volatile function to write in the remote side,
    and 2) opened the remote transaction in NOT DEFERRABLE mode even when
    the local transaction was DEFERRABLE, causing a SERIALIZABLE READ ONLY
    DEFERRABLE transaction using it to abort due to a serialization failure
    in the remote side.
    
    To avoid these, modify postgres_fdw to open a remote transaction in the
    same access/deferrable modes as the local transaction.  This commit also
    modifies it to open a remote subtransaction in the same access mode as
    the local subtransaction.
    
    Although these issues exist since the introduction of postgres_fdw,
    there have been no reports from the field.  So it seems fine to just fix
    them in master only.
    
    Author: Etsuro Fujita <[email protected]>
    Reviewed-by: Ashutosh Bapat <[email protected]>
    Reviewed-by: Tom Lane <[email protected]>
    Discussion: https://postgr.es/m/CAPmGK16n_hcUUWuOdmeUS%2Bw4Q6dZvTEDHb%3DOP%3D5JBzo-M3QmpQ%40mail.gmail.com
    Etsuro Fujita authored and Commitfest Bot committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    681e687 View commit details
    Browse the repository at this point in the history
  2. [CF 5624] v5 - postgres_fdw: Inherit the local transaction's access/d…

    …eferrable modes
    
    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5624
    
    The branch will be overwritten each time a new patch version is posted to
    the thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Patch(es): https://www.postgresql.org/message-id/CAPmGK15AQBXTgF_8EK=AY-Q6OLmhTuQSTWittLSVrw9Rvec25g@mail.gmail.com
    Author(s): Etsuro Fujita
    Commitfest Bot committed Aug 6, 2025
    Configuration menu
    Copy the full SHA
    bc62a12 View commit details
    Browse the repository at this point in the history
Loading