git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 01b88b4) | patch
Fix handling of non-upgraded B-tree metapages
Thu, 5 Apr 2018 14:56:00 +0000 (17:56 +0300)
Thu, 5 Apr 2018 14:56:00 +0000 (17:56 +0300)
commit 0a64b45152b593c5eb95f2e88fbce7fbfe84ae7b
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
contrib/pageinspect/btreefuncs.c diff | blob | blame | history
src/backend/access/nbtree/nbtpage.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /