Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0afdecc

Browse files
committed
Remove unnecessary unused MATCH PARTIAL code
ri_triggers.c spends a lot of space catering to a not-yet-implementedMATCH PARTIAL option. An actual implementation would probably not usethe existing code structure anyway, so let's just simplify this fornow.First, have ri_FetchConstraintInfo() check that riinfo->confmatchtypeis valid. Then we don't have to repeat that everywhere.In the various referential action functions, we don't need to payattention to the match type at all right now, so remove all that code.A future MATCH PARTIAL implementation would probably have someconditions added to the present code, but it won't need an entirelyseparate switch branch in each case.In RI_FKey_fk_upd_check_required(), reorganize the code to make itmuch simpler.Reviewed-by: Corey Huinker <corey.huinker@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/0ccdd3e1-10b0-dd05-d8a7-183507c11eb1%402ndquadrant.com
1 parent22c0d52 commit0afdecc

File tree

1 file changed

+438
-654
lines changed

1 file changed

+438
-654
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp