pgsql: Fix rd_firstRelfilenodeSubid for nailed relations, in parallel w

From: Noah Misch <noah(at)leadboat(dot)com>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix rd_firstRelfilenodeSubid for nailed relations, in parallel w
Date: 2020-09-10 01:52:57
Message-ID: E1kGBlh-0006rm-AY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6f15be5bedfc423b8a8f2f0282e2a0eb20a16663

Modified Files
--------------
src/backend/utils/cache/relcache.c | 23 +++++++++++++++--------
src/test/regress/expected/reindex_catalog.out | 10 ++++++++++
src/test/regress/sql/reindex_catalog.sql | 11 +++++++++++
3 files changed, 36 insertions(+), 8 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2020-09-10 03:48:38 Re: pgsql: Implement streaming mode in ReorderBuffer.
Previous Message Tom Lane 2020-09-09 22:47:16 Re: pgsql: Implement streaming mode in ReorderBuffer.