pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: simplehash: Additional tweaks to make specifying an allocator wo
Date: Thu, 09 Feb 2017 20:05:04 +0000
Message-ID: <E1cbuxk-0003dD-5b@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

simplehash: Additional tweaks to make specifying an allocator work.

Even if we don't emit definitions for SH_ALLOCATE and SH_FREE, we
still need prototypes.  The user can't define them before including
simplehash.h because SH_TYPE isn't available yet.

For the allocator to be able to access private_data, it needs to
become an argument to SH_CREATE.  Previously we relied on callers
to set that after returning from SH_CREATE, but SH_CREATE calls
SH_ALLOCATE before returning.

Dilip Kumar, reviewed by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/72257f95781af97108fa9a9e7224ec81a90e7693

Modified Files
--------------
src/backend/executor/execGrouping.c |  3 +--
src/backend/nodes/tidbitmap.c       |  2 +-
src/include/lib/simplehash.h        | 10 ++++++++--
3 files changed, 10 insertions(+), 5 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: <E1cbuxk-0003dD-5b@gemulon.postgresql.org>
Permalink:  ../E1cbuxk-0003dD-5b@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1cbuxk-0003dD-5b@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: rhaas@postgresql.org
  Subject: Re: pgsql: simplehash: Additional tweaks to make specifying an allocator wo
  In-Reply-To: <E1cbuxk-0003dD-5b@gemulon.postgresql.org>
  References: <E1cbuxk-0003dD-5b@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