Fix rd_firstRelfilenodeSubid for nailed relations, in parallel workers.
authorNoah Misch <noah@leadboat.com>
Thu, 10 Sep 2020 01:50:24 +0000 (18:50 -0700)
committerNoah Misch <noah@leadboat.com>
Thu, 10 Sep 2020 01:50:24 +0000 (18:50 -0700)
commitfe4d022c8e171ba3a9165bd55fa6b2ca3a40fa4e
tree7dfc7b39b5d9cf8abd2ef6e8b0415672ce87dd49
parentbedadc73220f7b09f29a4741dccd143a21a08dda
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
src/backend/utils/cache/relcache.c
src/test/regress/expected/reindex_catalog.out
src/test/regress/sql/reindex_catalog.sql