forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb82c877
committed
Fix refreshing physical relfilenumber on shared index
Buildfarm member 'prion', which is configured with-DRELCACHE_FORCE_RELEASE -DCATCACHE_FORCE_RELEASE, failed with errorslike this: ERROR: could not read blocks 0..0 in file "global/2672": read only 0 of 8192 byteswhile running a parallel test group that includes VACUUM FULL on somecatalog tables among other things. I was not able to reproduce thatjust by running the tests with -DRELCACHE_FORCE_RELEASE-DCATCACHE_FORCE_RELEASE, even though 'prion' hit it on first runafter commit2b9b8eb, so there might be something else that makesit more susceptible to the race. However, I was able to reproduce itby adding another test to the same test group that runs "vacuum fullpg_database" repeatedly.The problem is that RelationReloadIndexInfo() no longer callsRelationInitPhysicalAddr() on a nailed, shared index, when aninvalidation happens early during backend startup, before the criticalrelcaches have been built. Before commit2b9b8eb, that was done byRelationReloadNailed(), but it went missing from that path. Add itback as an explicit step.Broken by commit2b9b8eb, which refactored these functions.Discussion:https://www.postgresql.org/message-id/db876575-8f5b-4193-a538-df7e1f92d47a%40iki.fi1 parentfb7e27a commitb82c877
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2253 | 2253 |
| |
2254 | 2254 |
| |
2255 | 2255 |
| |
2256 |
| - | |
2257 |
| - | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
2258 | 2260 |
| |
2259 | 2261 |
| |
2260 | 2262 |
| |
| 2263 | + | |
2261 | 2264 |
| |
2262 | 2265 |
| |
2263 | 2266 |
| |
|
0 commit comments
Comments
(0)