From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of non-upgraded B-tree metapages
Date: Thu, 05 Apr 2018 14:56:18 +0000
Message-ID: <E1f46JG-0007n3-BP@gemulon.postgresql.org> (raw)
Fix handling of non-upgraded B-tree metapages
857f9c36 bumps B-tree metapage version while upgrade is performed "on the fly"
when needed. However, some asserts fired when old version metapage was
cached to rel->rd_amcache. Despite new metadata fields are never used from
rel->rd_amcache, that needs to be fixed. This patch introduces metadata
upgrade during its caching, which fills unavailable fields with their default
values. contrib/pageinspect is also patched to handle non-upgraded metapages
in the same way.
Author: Alexander Korotkov
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0a64b45152b593c5eb95f2e88fbce7fbfe84ae7b
Modified Files
--------------
contrib/pageinspect/btreefuncs.c | 17 ++++++++++++--
src/backend/access/nbtree/nbtpage.c | 47 ++++++++++++++++++++++++++++++++-----
2 files changed, 56 insertions(+), 8 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: teodor@sigaev.ru
Subject: Re: pgsql: Fix handling of non-upgraded B-tree metapages
In-Reply-To: <E1f46JG-0007n3-BP@gemulon.postgresql.org>
References: <E1f46JG-0007n3-BP@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox