Fix rd_firstRelfilenodeSubid for nailed relations, in parallel workers.
Noah Misch <noah@leadboat.com>
Fix rd_firstRelfilenodeSubid for nailed relations, in parallel workers. Move applicable code out of RelationBuildDesc(), which nailed relations bypass. Non-assert builds experienced no known problems. Back-patch to v13, where commit c6b92041d38512a4176ed76ad06f713d2e6c01a8 introduced rd_firstRelfilenodeSubid. Kyotaro Horiguchi. Reported by Justin Pryzby. Discussion: https://postgr.es/m/20200907023737.GA7158@telsasoft.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/cache/relcache.c | modified | +15 −8 |
| src/test/regress/expected/reindex_catalog.out | modified | +10 −0 |
| src/test/regress/sql/reindex_catalog.sql | modified | +11 −0 |
Discussion
- v13: CLUSTER segv with wal_level=minimal and parallel index creation 12 messages · 2020-09-07 → 2020-09-10