-
Notifications
You must be signed in to change notification settings - Fork 2
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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/5285~1
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: postgresql-cfbot/postgresql
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf/5285
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 4 commits
- 18 files changed
- 3 contributors
Commits on Mar 31, 2025
-
Remove hastriggers flag check before fetching FK constraints.
With NOT ENFORCED, foreign key constraints will be created without triggers. Therefore, the criteria for fetching foreign keys based on the presence of triggers no longer apply. ---- NOTE: This patch is intended to reduce the diff noise from the main patch and is not meant to be committed separately. It should be squashed with the main patch that adds ENFORCED/NOT ENFORCED. ----
Configuration menu - View commit details
-
Copy full SHA for cb7d8fa - Browse repository at this point
Copy the full SHA cb7d8faView commit details -
Add support for NOT ENFORCED in foreign key constraints.
Typically, when a foreign key (FK) constraint is created on a table, action and check triggers are added to maintain data integrity. With this patch, if a constraint is marked as NOT ENFORCED, integrity checks are no longer required, making these triggers unnecessary. Consequently, when creating a NOT ENFORCED FK constraint, triggers will not be created, and the constraint will be marked as NOT VALID. Similarly, if an existing FK constraint is changed to NOT ENFORCED, the associated triggers will be dropped, and the constraint will also be marked as NOT VALID. Conversely, if a NOT ENFORCED FK constraint is changed to ENFORCED, the necessary triggers will be created, and the will be changed to VALID by performing necessary validation. ---- NOTE: In this patch, the tryAttachPartitionForeignKey() function will not merge the constraint if the enforcibility differs. This will be addressed in the next patch. ----
Configuration menu - View commit details
-
Copy full SHA for 60a3e9e - Browse repository at this point
Copy the full SHA 60a3e9eView commit details -
Merge the parent and child constraints with differing enforcibility.
If an ENFORCED parent constraint is attached to a NOT ENFORCED child constraint, the child constraint will be made ENFORCED, with validation applied if the parent constraint is validated as well. Otherwise, a new ENFORCED constraint (with validation, if the parent constraint is validated) would need to be created on the child table, which would be unnecessary if a similar constraint already exists and can be attached. On the other hand, having a NOT ENFORCED parent constraint with an ENFORCED child constraint does not cause any issues, and no changes are required. ---- NOTE: This patch is intended to reduce the diff noise from the main patch and is not meant to be committed separately. It should be squashed with the main patch that adds ENFORCED/NOT ENFORCED. ----
Configuration menu - View commit details
-
Copy full SHA for 8c8fb5c - Browse repository at this point
Copy the full SHA 8c8fb5cView commit details -
[CF 5285] v21 - NOT ENFORCED constraint feature
This branch was automatically generated by a robot using patches from an email thread registered at: https://commitfest.postgresql.org/patch/5285 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/CAAJ_b94B8PByv_b4oxhHDzbGzjoY8cptKGAu-GX0_eiOkqEhHQ@mail.gmail.com Author(s): Amul Sul
Commitfest Bot committedMar 31, 2025 Configuration menu - View commit details
-
Copy full SHA for ff5ac04 - Browse repository at this point
Copy the full SHA ff5ac04View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff cf/5285~1...cf/5285