Re: [HACKERS] extension allocating shared memory

2012-04-17 Thread Kevin Grittner
Alvaro Herrera 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

Re: [HACKERS] extension allocating shared memory

2012-04-17 Thread Alvaro Herrera
Excerpts from Kevin Grittner's message of mar abr 17 16:27:21 -0300 2012: > What is the best way for an extension to allocate shared memory and to > access it from every backend? Or, if there is no support existing for > that, what advice do people have if I want to make that happen? I don't > n