-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34365: sql: fix FK validation join implementation r=lucy-zhang a=lucy-zhang This PR updates the SQL query used for VALIDATE CONSTRAINT for foreign keys. The new implementation is compatible with the recent changes to FK matching semantics (both MATCH FULL and MATCH SIMPLE). It also uses a merge join, which will improve performance significantly compared to the old hash join implementation. Release note (sql change): VALIDATE CONSTRAINT for foreign keys is now compatible with the new MATCH FULL and MATCH SIMPLE semantics, and is more performant. Fixes #33452 Co-authored-by: Lucy Zhang <[email protected]>
- Loading branch information
Showing
2 changed files
with
651 additions
and
28 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
Oops, something went wrong.