pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Use FLEXIBLE_ARRAY_MEMBER for HeapTupleHeaderData.t_bits[].
Date: Sat, 21 Feb 2015 20:13:16 +0000
Message-ID: <E1YPGQO-00071F-OZ@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Use FLEXIBLE_ARRAY_MEMBER for HeapTupleHeaderData.t_bits[].

This requires changing quite a few places that were depending on
sizeof(HeapTupleHeaderData), but it seems for the best.

Michael Paquier, some adjustments by me

Branch
------
master

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

Modified Files
--------------
contrib/file_fdw/file_fdw.c                     |    2 +-
contrib/pageinspect/heapfuncs.c                 |   17 +++----
contrib/postgres_fdw/postgres_fdw.c             |    2 +-
src/backend/access/common/heaptuple.c           |    2 +-
src/backend/access/heap/heapam.c                |   56 +++++++++++------------
src/backend/access/heap/tuptoaster.c            |   10 ++--
src/backend/catalog/toasting.c                  |    2 +-
src/backend/executor/nodeHash.c                 |    2 +-
src/backend/optimizer/path/costsize.c           |    6 +--
src/backend/optimizer/plan/planner.c            |    4 +-
src/backend/optimizer/plan/subselect.c          |    8 ++--
src/backend/optimizer/prep/prepunion.c          |    2 +-
src/backend/optimizer/util/plancat.c            |    2 +-
src/backend/replication/logical/decode.c        |   30 ++++++------
src/backend/replication/logical/reorderbuffer.c |   26 +++++------
src/backend/utils/adt/trigfuncs.c               |    6 +--
src/include/access/htup_details.h               |   12 +++--
src/include/access/tuptoaster.h                 |    2 +-
src/include/replication/reorderbuffer.h         |   10 ++--
19 files changed, 102 insertions(+), 99 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: <E1YPGQO-00071F-OZ@gemulon.postgresql.org>
Permalink:  ../E1YPGQO-00071F-OZ@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1YPGQO-00071F-OZ@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: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Use FLEXIBLE_ARRAY_MEMBER for HeapTupleHeaderData.t_bits[].
  In-Reply-To: <E1YPGQO-00071F-OZ@gemulon.postgresql.org>
  References: <E1YPGQO-00071F-OZ@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