postgresql/contrib/pageinspect
Teodor Sigaev 0a64b45152 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
2018-04-05 17:56:00 +03:00
..
expected Skip full index scan during cleanup of B-tree indexes when possible 2018-04-04 19:29:00 +03:00
sql Fix new test case to not be endian-dependent. 2018-01-04 16:00:21 -05:00
.gitignore pageinspect: Add tests 2016-11-01 14:02:16 -04:00
Makefile Skip full index scan during cleanup of B-tree indexes when possible 2018-04-04 19:29:00 +03:00
brinfuncs.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
btreefuncs.c Fix handling of non-upgraded B-tree metapages 2018-04-05 17:56:00 +03:00
fsmfuncs.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
ginfuncs.c Update copyright for 2018 2018-01-02 23:30:12 -05:00
hashfuncs.c pageinspect: Fix use of wrong memory context by hash_page_items. 2018-01-26 09:56:33 -05:00
heapfuncs.c Fix incorrect computations of length of null bitmap in pageinspect. 2018-01-04 14:59:00 -05:00
pageinspect--1.0--1.1.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
pageinspect--1.1--1.2.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
pageinspect--1.2--1.3.sql pageinspect/BRIN: minor tweaks 2014-12-02 12:20:50 -03:00
pageinspect--1.3--1.4.sql Add forgotten file in commit d6061f83a1 2015-11-25 16:59:07 +03:00
pageinspect--1.4--1.5.sql Update pageinspect extension for parallel query. 2016-06-09 17:18:09 -04:00
pageinspect--1.5--1.6.sql pageinspect: Add bt_page_items function with bytea argument 2017-04-04 23:52:55 -04:00
pageinspect--1.5.sql Update pageinspect extension for parallel query. 2016-06-09 17:18:09 -04:00
pageinspect--1.6--1.7.sql Skip full index scan during cleanup of B-tree indexes when possible 2018-04-04 19:29:00 +03:00
pageinspect--unpackaged--1.0.sql Fix typos in some error messages thrown by extension scripts when fed to psql. 2014-08-25 18:30:37 +02:00
pageinspect.control Skip full index scan during cleanup of B-tree indexes when possible 2018-04-04 19:29:00 +03:00
pageinspect.h Update copyright for 2018 2018-01-02 23:30:12 -05:00
rawpage.c Update copyright for 2018 2018-01-02 23:30:12 -05:00