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/5992~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/5992
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Sep 1, 2025

  1. postgres_fdw: Use psql variables for connection parameters

    Several statements need to reference the current connection's current
    database name and current port value.  Until now, this has been
    accomplished by creating dynamic SQL statements inside of a DO block,
    which is not as easy to parse.  It also takes away some of the
    granularity of any error messages that might occur, making debugging
    harder.
    
    By capturing the connection-specific settings into psql variables, it
    becomes possible to write simpler SQL statements for the FDW objects.
    This eliminates most of DO blocks used in this test, making it a bit
    more readable and shorter.
    
    Author: Author: Corey Huinker <[email protected]>
    Discussion: https://postgr.es/m/CADkLM=cpUiJ3QF7aUthTvaVMmgQcm7QqZBRMDLhBRTR+gJX-Og@mail.gmail.com
    michaelpq committed Sep 1, 2025
    Configuration menu
    Copy the full SHA
    36aed19 View commit details
    Browse the repository at this point in the history
Loading