forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f9692b
committed
Fix relpersistence setting in reindex_index
Buildfarm members with CLOBBER_CACHE_ALWAYS advised us that commit85b506b was mistaken in setting the relpersistence value of theindex directly in the relcache entry, within reindex_index. The reasonfor the failure is that an invalidation message that comes after muckingwith the relcache entry directly, but before writing it to the catalogs,would cause the entry to become rebuilt in place from catalogs with theold contents, losing the update.Fix by passing the correct persistence value toRelationSetNewRelfilenode instead; this routine also writes the updatedtuple to pg_class, avoiding the problem. Suggested by Tom Lane.1 parent7466a1b commit0f9692b
File tree
5 files changed
+17
-14
lines changed- src
- backend
- catalog
- commands
- utils/cache
- include/utils
5 files changed
+17
-14
lines changedLines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3191 | 3191 |
| |
3192 | 3192 |
| |
3193 | 3193 |
| |
3194 |
| - | |
3195 |
| - | |
3196 |
| - | |
3197 | 3194 |
| |
3198 |
| - | |
| 3195 | + | |
3199 | 3196 |
| |
3200 | 3197 |
| |
3201 | 3198 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 |
| - | |
307 |
| - | |
| 306 | + | |
| 307 | + | |
308 | 308 |
| |
309 | 309 |
| |
310 | 310 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1196 | 1196 |
| |
1197 | 1197 |
| |
1198 | 1198 |
| |
1199 |
| - | |
| 1199 | + | |
| 1200 | + | |
1200 | 1201 |
| |
1201 | 1202 |
| |
1202 | 1203 |
| |
| |||
1209 | 1210 |
| |
1210 | 1211 |
| |
1211 | 1212 |
| |
1212 |
| - | |
| 1213 | + | |
| 1214 | + | |
1213 | 1215 |
| |
1214 | 1216 |
| |
1215 | 1217 |
| |
|
Lines changed: 9 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3005 | 3005 |
| |
3006 | 3006 |
| |
3007 | 3007 |
| |
| 3008 | + | |
| 3009 | + | |
| 3010 | + | |
| 3011 | + | |
3008 | 3012 |
| |
3009 | 3013 |
| |
3010 |
| - | |
3011 |
| - | |
| 3014 | + | |
| 3015 | + | |
3012 | 3016 |
| |
3013 | 3017 |
| |
3014 | 3018 |
| |
| |||
3025 | 3029 |
| |
3026 | 3030 |
| |
3027 | 3031 |
| |
3028 |
| - | |
| 3032 | + | |
3029 | 3033 |
| |
3030 | 3034 |
| |
3031 | 3035 |
| |
| |||
3048 | 3052 |
| |
3049 | 3053 |
| |
3050 | 3054 |
| |
3051 |
| - | |
| 3055 | + | |
3052 | 3056 |
| |
3053 | 3057 |
| |
3054 | 3058 |
| |
| |||
3078 | 3082 |
| |
3079 | 3083 |
| |
3080 | 3084 |
| |
3081 |
| - | |
| 3085 | + | |
3082 | 3086 |
| |
3083 | 3087 |
| |
3084 | 3088 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 |
| - | |
| 98 | + | |
99 | 99 |
| |
100 | 100 |
| |
101 | 101 |
| |
|
0 commit comments
Comments
(0)