mirror of https://github.com/postgres/postgres
ld_upper, ld_lower, pd_special and the page size have been using smallint as return type, which could cause those fields to return negative values in certain cases for builds configures with a page size of 32kB. Bump pageinspect to 1.10. page_header() is able to handle the correct return type of those fields at runtime when using an older version of the extension, with some tests are added to cover that. Author: Quan Zongliang Reviewed-by: Michael Paquier, Bharath Rupireddy Discussion: https://postgr.es/m/8b8ec36e-61fe-14f9-005d-07bc85aa4eed@yeah.netpull/67/head
parent
626731db26
commit
127404fbe2
@ -0,0 +1,21 @@ |
||||
/* contrib/pageinspect/pageinspect--1.9--1.10.sql */ |
||||
|
||||
-- complain if script is sourced in psql, rather than via ALTER EXTENSION |
||||
\echo Use "ALTER EXTENSION pageinspect UPDATE TO '1.10'" to load this file. \quit |
||||
|
||||
-- |
||||
-- page_header() |
||||
-- |
||||
DROP FUNCTION page_header(IN page bytea); |
||||
CREATE FUNCTION page_header(IN page bytea, |
||||
OUT lsn pg_lsn, |
||||
OUT checksum smallint, |
||||
OUT flags smallint, |
||||
OUT lower int, |
||||
OUT upper int, |
||||
OUT special int, |
||||
OUT pagesize int, |
||||
OUT version smallint, |
||||
OUT prune_xid xid) |
||||
AS 'MODULE_PATHNAME', 'page_header' |
||||
LANGUAGE C STRICT PARALLEL SAFE; |
@ -1,5 +1,5 @@ |
||||
# pageinspect extension |
||||
comment = 'inspect the contents of database pages at a low level' |
||||
default_version = '1.9' |
||||
default_version = '1.10' |
||||
module_pathname = '$libdir/pageinspect' |
||||
relocatable = true |
||||
|
Loading…
Reference in new issue