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

Commits on Jan 22, 2025

  1. Allow NOT VALID foreign key constraints on partitioned tables.

    When merging an existing foreign key during the addition or attachment
    of a partition, consider the following:
    
    1. If the parent foreign key constraint being added is NOT VALID, the
       validity flag of the matching child constraint is ignored. It is
       harmless for the child constraint to remain valid.
    
    2. If the parent foreign key constraint being added is VALID and the
       matching child constraint is NOT VALID, the we implicitly validates
       the child constraint, marking it as valid. This behavior is
       consistent with creating a new constraint on the child table rather
       than attaching it to an existing one, as it ensures the child data
       is validated.
    EDB-AmulSul authored and Commitfest Bot committed Jan 22, 2025
    Configuration menu
    Copy the full SHA
    5128b98 View commit details
    Browse the repository at this point in the history
  2. [CF 52/5503] v3 - NOT VALID foreign key constraints on partitioned ta…

    …bles
    
    This commit was automatically generated by a robot at cfbot.cputube.org.
    It is based on patches submitted to the PostgreSQL mailing lists and
    registered in the PostgreSQL Commitfest application.
    
    This branch will be overwritten each time a new patch version is posted to
    the email thread, and also periodically to check for bitrot caused by changes
    on the master branch.
    
    Commitfest entry: https://commitfest.postgresql.org/52/5503
    Patch(es): https://www.postgresql.org/message-id/CAAJ_b97_zJvzmLJS8AAzGFEYAAMbm5KM8ix4VPxaSO=ptkYx6Q@mail.gmail.com
    Author(s): Amul Sul
    Commitfest Bot committed Jan 22, 2025
    Configuration menu
    Copy the full SHA
    91998a6 View commit details
    Browse the repository at this point in the history
Loading