Re: dynamically allocating chunks from shared memory - Mailing list pgsql-hackers

From Markus Wanner
Subject Re: dynamically allocating chunks from shared memory
Date
Msg-id 4C605241.1050108@bluegap.ch
Whole thread Raw
In response to Re: dynamically allocating chunks from shared memory  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On 08/09/2010 09:00 PM, Bruce Momjian wrote:
> You could allocate shared memory in chunks and then pass that out to
> requestors, the same way sbrk() does it.

sbrk() is described [1] as a "low-level memory allocator", which "is 
typically only used by the high-level malloc memory allocator 
implemented in the C library".

Think of my patch as the high(er)-level variant ;-)   It's certainly 
doable using processes and shared memory. Yes. My patch shows one way of 
how to go a step into that direction.

Regards

Markus Wanner

[1]: http://www.cs.utah.edu/flux/moss/node39.html


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: host name support in pg_hba.conf
Next
From: Robert Haas
Date:
Subject: Re: dynamically allocating chunks from shared memory