- Notifications
You must be signed in to change notification settings - Fork5
Commitcf59277
committed
Remove unnecessary opening of other relation in RI_FKey_keyequal_upd_pk
and RI_FKey_keyequal_upd_fk, as well as no-longer-needed calls ofri_BuildQueryKeyFull. Aside from saving a few cycles, this avoids needlessdeadlock risks when an update is not changing the columns that participatein an RI constraint. Per a gripe from Alexey Nalbat.Back-patch to 8.3. Earlier releases did have a need to open the otherrelation due to the way in which they retrieved information about the RIconstraint, so this problem unfortunately can't easily be improved pre-8.3.Tom Lane and Stephan Szabo1 parentfc54be8 commitcf59277
1 file changed
+4
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
2516 | 2515 | | |
2517 | 2516 | | |
2518 | 2517 | | |
2519 | | - | |
2520 | | - | |
2521 | 2518 | | |
2522 | 2519 | | |
2523 | 2520 | | |
| |||
2530 | 2527 | | |
2531 | 2528 | | |
2532 | 2529 | | |
2533 | | - | |
2534 | | - | |
2535 | 2530 | | |
2536 | 2531 | | |
2537 | 2532 | | |
2538 | 2533 | | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
2544 | | - | |
| 2534 | + | |
2545 | 2535 | | |
2546 | 2536 | | |
2547 | 2537 | | |
| |||
2570 | 2560 | | |
2571 | 2561 | | |
2572 | 2562 | | |
2573 | | - | |
2574 | | - | |
2575 | 2563 | | |
2576 | 2564 | | |
2577 | 2565 | | |
| |||
2584 | 2572 | | |
2585 | 2573 | | |
2586 | 2574 | | |
2587 | | - | |
2588 | | - | |
2589 | 2575 | | |
2590 | 2576 | | |
2591 | 2577 | | |
2592 | 2578 | | |
2593 | | - | |
2594 | | - | |
2595 | | - | |
2596 | | - | |
2597 | | - | |
| 2579 | + | |
2598 | 2580 | | |
2599 | 2581 | | |
2600 | 2582 | | |
| |||
0 commit comments
Comments
(0)