forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbea449c

Amit Kapila
Optimize DropRelFileNodesAllBuffers() for recovery.
Similar to commitd6ad34f, this patch optimizesDropRelFileNodesAllBuffers() by avoiding the complete buffer pool scan andinstead find the buffers to be invalidated by doing lookups in theBufMapping table.This optimization helps operations where the relation files need to beremoved like Truncate, Drop, Abort of Create Table, etc.Author: Kirk JamisonReviewed-by: Kyotaro Horiguchi, Takayuki Tsunakawa, and Amit KapilaTested-By: Haiying TangDiscussion:https://postgr.es/m/OSBPR01MB3207DCA7EC725FDD661B3EDAEF660@OSBPR01MB3207.jpnprd01.prod.outlook.com1 parentfce7d0e commitbea449c
3 files changed
+84
-16
lines changedLines changed: 77 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3104 | 3104 |
| |
3105 | 3105 |
| |
3106 | 3106 |
| |
3107 |
| - | |
| 3107 | + | |
3108 | 3108 |
| |
3109 |
| - | |
3110 |
| - | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
3111 | 3115 |
| |
| 3116 | + | |
3112 | 3117 |
| |
3113 | 3118 |
| |
3114 | 3119 |
| |
3115 | 3120 |
| |
3116 | 3121 |
| |
3117 |
| - | |
| 3122 | + | |
3118 | 3123 |
| |
3119 | 3124 |
| |
3120 | 3125 |
| |
3121 | 3126 |
| |
3122 |
| - | |
| 3127 | + | |
3123 | 3128 |
| |
3124 |
| - | |
3125 |
| - | |
| 3129 | + | |
| 3130 | + | |
3126 | 3131 |
| |
3127 | 3132 |
| |
3128 |
| - | |
| 3133 | + | |
3129 | 3134 |
| |
3130 | 3135 |
| |
3131 | 3136 |
| |
| |||
3134 | 3139 |
| |
3135 | 3140 |
| |
3136 | 3141 |
| |
3137 |
| - | |
| 3142 | + | |
3138 | 3143 |
| |
3139 | 3144 |
| |
3140 | 3145 |
| |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
| 3163 | + | |
| 3164 | + | |
| 3165 | + | |
| 3166 | + | |
| 3167 | + | |
| 3168 | + | |
| 3169 | + | |
| 3170 | + | |
| 3171 | + | |
| 3172 | + | |
| 3173 | + | |
| 3174 | + | |
| 3175 | + | |
| 3176 | + | |
| 3177 | + | |
| 3178 | + | |
| 3179 | + | |
| 3180 | + | |
| 3181 | + | |
| 3182 | + | |
| 3183 | + | |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
3141 | 3208 |
| |
3142 | 3209 |
| |
3143 | 3210 |
| |
| |||
3193 | 3260 |
| |
3194 | 3261 |
| |
3195 | 3262 |
| |
| 3263 | + | |
3196 | 3264 |
| |
3197 | 3265 |
| |
3198 | 3266 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
390 | 390 |
| |
391 | 391 |
| |
392 | 392 |
| |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
393 | 399 |
| |
394 | 400 |
| |
395 | 401 |
| |
| |||
407 | 413 |
| |
408 | 414 |
| |
409 | 415 |
| |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
205 | 205 |
| |
206 | 206 |
| |
207 | 207 |
| |
208 |
| - | |
| 208 | + | |
209 | 209 |
| |
210 | 210 |
| |
211 | 211 |
| |
|
0 commit comments
Comments
(0)