postgresql/contrib/pageinspect
Michael Paquier 58b4cb30a5 Redesign pageinspect function printing infomask bits
After more discussion, the new function added by ddbd5d8 could have been
designed in a better way.  Based on an idea from Álvaro, instead of
returning one column which includes both the raw and combined flags, use
two columns, with one for the raw flags and one for the combined flags.

This also takes care of some issues with HEAP_LOCKED_UPGRADED and
HEAP_XMAX_IS_LOCKED_ONLY which are not really combined flags as they
depend on conditions defined by other raw bits, as mentioned by Amit.

While on it, fix an extra issue with combined flags.  A combined flag
was returned if at least one of its bits was set, but all its bits need
to be set to include it in the result.

Author: Michael Paquier
Reviewed-by: Álvaro Herrera, Amit Kapila
Discussion: https://postgr.es/m/20190913114950.GA3824@alvherre.pgsql
2019-09-19 11:01:52 +09:00
..
expected Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09:00
sql Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09:00
.gitignore pageinspect: Add tests 2016-11-01 14:02:16 -04:00
Makefile Add to pageinspect function to make t_infomask/t_infomask2 human-readable 2019-09-12 15:06:00 +09:00
brinfuncs.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
btreefuncs.c Make heap TID a tiebreaker nbtree index column. 2019-03-20 10:04:01 -07:00
fsmfuncs.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
ginfuncs.c Update copyright for 2019 2019-01-02 12:44:25 -05:00
hashfuncs.c Don't include utils/array.h from acl.h. 2019-08-16 10:33:30 -07:00
heapfuncs.c Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09: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--1.7--1.8.sql Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09: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 Add to pageinspect function to make t_infomask/t_infomask2 human-readable 2019-09-12 15:06:00 +09:00
pageinspect.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
rawpage.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00