| From: | Markus Wanner <markus(at)bluegap(dot)ch> |
|---|---|
| To: | Bruce Momjian <bruce(at)momjian(dot)us> |
| Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, PostgreSQL-development Hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: dynamically allocating chunks from shared memory |
| Date: | 2010-08-09 19:08:49 |
| Message-ID: | 4C605241.1050108@bluegap.ch |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2010-08-09 19:11:06 | Re: dynamically allocating chunks from shared memory |
| Previous Message | Robert Haas | 2010-08-09 19:05:16 | Re: host name support in pg_hba.conf |