pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: simplehash: Allow use of simplehash without MemoryContext.
Date: Tue, 17 Dec 2019 19:09:46 +0000
Message-ID: <E1ihIE6-0006Fx-Hy@gemulon.postgresql.org> (raw)

simplehash: Allow use of simplehash without MemoryContext.

If the SH_RAW_ALLOCATOR is defined, it will be used to allocate bytes
for the hash table, and no dependencies on MemoryContext will exist.
This means, in particular, that the SH_CREATE function will not take
a MemoryContext argument.

Patch by me, reviewed by Andres Freund.

Discussion: http://postgr.es/m/CA+Tgmob8oyh02NrZW=xCScB+5GyJ-jVowE3+TWTUmPF=FsGWTA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/48995040d5e7b1e9bac35d72aff326cae002219d

Modified Files
--------------
src/include/lib/simplehash.h | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)



Message-ID: <E1ihIE6-0006Fx-Hy@gemulon.postgresql.org>
Permalink:  ../E1ihIE6-0006Fx-Hy@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ihIE6-0006Fx-Hy@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: Allow use of simplehash without MemoryContext.
  In-Reply-To: <E1ihIE6-0006Fx-Hy@gemulon.postgresql.org>
  References: <E1ihIE6-0006Fx-Hy@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