Commit 0f9692b
committed
Fix relpersistence setting in reindex_index
Buildfarm members with CLOBBER_CACHE_ALWAYS advised us that commit
85b506b was mistaken in setting the relpersistence value of the
index directly in the relcache entry, within reindex_index. The reason
for the failure is that an invalidation message that comes after mucking
with the relcache entry directly, but before writing it to the catalogs,
would cause the entry to become rebuilt in place from catalogs with the
old contents, losing the update.
Fix by passing the correct persistence value to
RelationSetNewRelfilenode instead; this routine also writes the updated
tuple to pg_class, avoiding the problem. Suggested by Tom Lane.1 parent 7466a1b commit 0f9692b
File tree
5 files changed
+17
-14
lines changed- src
- backend
- catalog
- commands
- utils/cache
- include/utils
5 files changed
+17
-14
lines changed| 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 | | |
| |||
| 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 | | |
| |||
| 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 | | |
| |||
| 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 | | |
| |||
| 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