Skip to content

pg_pageinspect_plus

Decode heap tuple data obtained with PostgreSQL pageinspect helpers

pg_pageinspect_plus · Decode heap tuple data obtained with PostgreSQL pageinspect helpers

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
100442pg_pageinspect_pluspg_pageinspect_plus1.0ADMINBSD-3-ClauseC

PostgreSQL · 10, 11, 12, 13, 14, 15, 16, 17, 18

Usage

Sources:

pg_pageinspect_plus augments pageinspect with helpers that decode raw tuple attributes into common PostgreSQL types. It installs into pg_catalog and supports PostgreSQL 10–18 in current upstream documentation.

CREATE EXTENSION pageinspect;
CREATE EXTENSION pg_pageinspect_plus;
SELECT tuple_data_parse(
         'public.sample'::regclass,
         tuple_data_split('public.sample'::regclass,
                          t_data, t_infomask, t_infomask2, t_bits)
       )
FROM heap_page_items(get_raw_page('public.sample', 0));

Additional helpers convert raw bytea to timestamp, timestamptz, interval, integer, bigint, boolean, text, float4, and float8. They expose physical representation, not a portable serialization format.

Page inspection bypasses normal row visibility and type access paths and may reveal deleted or sensitive values. Restrict execution to trusted administrators. Results depend on the exact table descriptor, PostgreSQL build, endianness, alignment, and page state; use on a copy when investigating corruption, and never write raw pages based on decoded output.

Table reader