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/5854~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/5854
Choose a head ref
  • 2 commits
  • 41 files changed
  • 2 contributors

Commits on Aug 10, 2025

  1. Allow EXCLUDED in RETURNING list of INSERT ON CONFLICT DO UPDATE.

    This allows an INSERT ... ON CONFLICT DO UPDATE command to return the
    excluded values, when conflicts occur. For rows that do not conflict,
    the excluded values returned are NULL.
    
    This builds on the infrastructure added to support OLD/NEW values in
    the RETURNING list, except that in the case of EXCLUDED, there is no
    need for the special syntax to change the name of the excluded
    pseudo-relation in the RETURNING list. (That was required for OLD/NEW,
    because those names were already used in some situations, such as
    trigger functions, but there is no such problem with excluded.)
    
    Discussion: https://postgr.es/m/CAEZATCXXu2ohYmn=4YrRQa9yNwD_fdEEOTBPgM_5jhQOFcaQ4g@mail.gmail.com
    deanrasheed authored and Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    029161c View commit details
    Browse the repository at this point in the history
  2. [CF 5854] v4 - Allow ON CONFLICT DO UPDATE to return EXCLUDED values

    This branch was automatically generated by a robot using patches from an
    email thread registered at:
    
    https://commitfest.postgresql.org/patch/5854
    
    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/CAEZATCXr_=6+OwBDrjCQTvnAHx8FjPwMk83gOh-MfUaGivhGRQ@mail.gmail.com
    Author(s): Dean Rasheed
    Commitfest Bot committed Aug 10, 2025
    Configuration menu
    Copy the full SHA
    e207bfd View commit details
    Browse the repository at this point in the history
Loading