pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pageinspect: Improve page_header() for pages of 32kB
Date: Mon, 12 Jul 2021 02:13:58 +0000
Message-ID: <E1m2lSI-0004l0-UV@gemulon.postgresql.org> (raw)

pageinspect: Improve page_header() for pages of 32kB

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.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/127404fbe28455d6e8183fa58f3b7aefeba8f909

Modified Files
--------------
contrib/pageinspect/Makefile                    |  2 +-
contrib/pageinspect/expected/oldextversions.out | 16 +++++++++++++
contrib/pageinspect/pageinspect--1.9--1.10.sql  | 21 +++++++++++++++++
contrib/pageinspect/pageinspect.control         |  2 +-
contrib/pageinspect/rawpage.c                   | 31 +++++++++++++++++++++----
contrib/pageinspect/sql/oldextversions.sql      |  6 +++++
6 files changed, 72 insertions(+), 6 deletions(-)



Message-ID: <E1m2lSI-0004l0-UV@gemulon.postgresql.org>
Permalink:  ../E1m2lSI-0004l0-UV@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1m2lSI-0004l0-UV@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: pageinspect: Improve page_header() for pages of 32kB
  In-Reply-To: <E1m2lSI-0004l0-UV@gemulon.postgresql.org>
  References: <E1m2lSI-0004l0-UV@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox