Commit a67da49
Amit Kapila
Avoid duplicate table scans for cross-partition updates during logical replication.
When performing a cross-partition update in the apply worker, it
needlessly scans the old partition twice, resulting in noticeable
overhead.
This commit optimizes it by removing the redundant table scan.
Author: Hou Zhijie
Reviewed-by: Hayato Kuroda, Amit Kapila
Discussion: https://postgr.es/m/OS0PR01MB571623E39984D94CBB5341D994AB2@OS0PR01MB5716.jpnprd01.prod.outlook.com1 parent a7f107d commit a67da49
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2991 | 2991 | | |
2992 | 2992 | | |
2993 | 2993 | | |
| 2994 | + | |
2994 | 2995 | | |
2995 | 2996 | | |
2996 | 2997 | | |
| |||
3021 | 3022 | | |
3022 | 3023 | | |
3023 | 3024 | | |
| 3025 | + | |
| 3026 | + | |
| 3027 | + | |
3024 | 3028 | | |
3025 | 3029 | | |
3026 | 3030 | | |
| |||
3036 | 3040 | | |
3037 | 3041 | | |
3038 | 3042 | | |
3039 | | - | |
3040 | | - | |
3041 | | - | |
3042 | | - | |
3043 | | - | |
3044 | 3043 | | |
3045 | 3044 | | |
3046 | 3045 | | |
3047 | 3046 | | |
3048 | 3047 | | |
3049 | | - | |
3050 | | - | |
3051 | 3048 | | |
3052 | 3049 | | |
3053 | 3050 | | |
| |||
3091 | 3088 | | |
3092 | 3089 | | |
3093 | 3090 | | |
3094 | | - | |
3095 | | - | |
3096 | | - | |
| 3091 | + | |
| 3092 | + | |
| 3093 | + | |
3097 | 3094 | | |
3098 | 3095 | | |
3099 | 3096 | | |
| |||
3123 | 3120 | | |
3124 | 3121 | | |
3125 | 3122 | | |
| 3123 | + | |
| 3124 | + | |
| 3125 | + | |
3126 | 3126 | | |
3127 | 3127 | | |
3128 | 3128 | | |
| |||
0 commit comments