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

Commits on Jun 30, 2025

  1. Improve error report for PL/pgSQL reserved word used as a field name.

    The current code in resolve_column_ref (dating to commits 01f7d29
    and fe24d78) believes that not finding a RECFIELD datum is a
    can't-happen case, in consequence of which I didn't spend a whole lot
    of time considering what to do if it did happen.  But it turns out
    that it *can* happen if the would-be field name is a fully-reserved
    PL/pgSQL keyword.  Change the error message to describe that
    situation, and add a test case demonstrating it.
    
    This might need further refinement if anyone can find other ways to
    trigger a failure here; but without an example it's not clear what
    other error to throw.
    
    Author: Tom Lane <[email protected]>
    Reviewed-by: Pavel Stehule <[email protected]>
    Discussion: https://postgr.es/m/[email protected]
    tglsfdc committed Jun 30, 2025
    Configuration menu
    Copy the full SHA
    0836683 View commit details
    Browse the repository at this point in the history
Loading