Re: extension allocating shared memory

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Alvaro Herrera" <alvherre(at)commandprompt(dot)com>
Cc: "Pg Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: extension allocating shared memory
Date: 2012-04-17 21:25:50
Message-ID: 4F8D998E020000250004707A@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Alvaro Herrera <alvherre(at)commandprompt(dot)com> wrote:
> Excerpts from Kevin Grittner's message:

>> What is the best way for an extension to allocate shared memory
>> and to access it from every backend?

> RequestAddinShmemSpace

Perfect! That's exactly what I wanted. I see that the
pg_stat_statements extension is already using it, so I even have a
good working example to look at.

Thanks,

-Kevin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2012-04-17 21:29:25 Re: Bug tracker tool we need
Previous Message Jameison Martin 2012-04-17 20:56:02 Re: patch submission: truncate trailing nulls from heap rows to reduce the size of the null bitmap