postgresql/contrib/pageinspect/sql
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
..
brin.sql pageinspect: Add tests 2016-11-01 14:02:16 -04:00
btree.sql pageinspect: Add bt_page_items function with bytea argument 2017-04-04 23:52:55 -04:00
gin.sql Fix gin_leafpage_items(). 2016-11-04 12:11:54 -04:00
hash.sql pageinspect: Remove platform-dependent values from hash tests. 2017-02-03 11:06:41 -05:00
page.sql Redesign pageinspect function printing infomask bits 2019-09-19 11:01:52 +09:00