pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Additional fixes of memory alignment in pg_mcv_list code
Date: Sat, 30 Mar 2019 18:47:34 +0000
Message-ID: <E1hAJ0w-0006pS-JK@gemulon.postgresql.org> (raw)

Additional fixes of memory alignment in pg_mcv_list code

Commit d85e0f366a tried to fix memory alignment issues in serialization
and deserialization of pg_mcv_list values, but it was a few bricks shy.
The arrays of uint16 indexes in serialized items was not aligned, and
the both the values and isnull flags were using the same pointer.

Per investigation by Tom Lane on gaur.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ea4e1c0e8f583f99c8caab5bcdfbbbaaed0685c0

Modified Files
--------------
src/backend/statistics/mcv.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)



Message-ID: <E1hAJ0w-0006pS-JK@gemulon.postgresql.org>
Permalink:  ../E1hAJ0w-0006pS-JK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hAJ0w-0006pS-JK@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tomas.vondra@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Additional fixes of memory alignment in pg_mcv_list code
  In-Reply-To: <E1hAJ0w-0006pS-JK@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