pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Move BRIN page type to page's last two bytes
Date: Tue, 10 Mar 2015 15:37:23 +0000
Message-ID: <E1YVMDj-0005uJ-Ln@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Move BRIN page type to page's last two bytes

... which is the usual convention among AMs, so that pg_filedump and
similar utilities can tell apart pages of different AMs.  It was also
the intent of the original code, but I failed to realize that alignment
considerations would move the whole thing to the previous-to-last word
in the page.

The new definition of the associated macro makes surrounding code a bit
leaner, too.

Per note from Heikki at
http://www.postgresql.org/message-id/546A16EF.9070005@vmware.com

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e491bd2ee34860b14ff18abc5602f9aa5b197a2d

Modified Files
--------------
contrib/pageinspect/brinfuncs.c        |   13 ++++-------
src/backend/access/brin/brin_pageops.c |   23 +++++--------------
src/backend/access/brin/brin_revmap.c  |    2 +-
src/include/access/brin_page.h         |   38 ++++++++++++++++++++++++--------
src/include/access/gin_private.h       |    8 +++----
src/include/access/spgist_private.h    |    2 ++
6 files changed, 45 insertions(+), 41 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1YVMDj-0005uJ-Ln@gemulon.postgresql.org>
Permalink:  ../E1YVMDj-0005uJ-Ln@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YVMDj-0005uJ-Ln@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: alvherre@alvh.no-ip.org
  Subject: Re: pgsql: Move BRIN page type to page's last two bytes
  In-Reply-To: <E1YVMDj-0005uJ-Ln@gemulon.postgresql.org>
  References: <E1YVMDj-0005uJ-Ln@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