-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix pg_constraint oid duplication (#8166)
Multiple of our invested constraints were being given the same oid which caused problems. One specific problem was generating bogus pgdumps, which annoyingly mostly only showed up in inplace-upgrade tests: https://github.com/edgedb/edgedb/actions/runs/12442350513/job/34740389082?pr=8159 The problem was that pg_get_constraintdef was returning a constraint definition for the "wrong" object; the defining query would return 3 rows, and postgres silently returns the first. Fix this by adding some bits to the oid separate from the uuid of the link, and test that the fix works by putting the body of pg_get_constraintdef into a subquery. This hopefully will unblock #8159.
- Loading branch information
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters