Re: [HACKERS] POC: Sharing record typmods between backends
| От | Dilip Kumar |
|---|---|
| Тема | Re: [HACKERS] POC: Sharing record typmods between backends |
| Дата | |
| Msg-id | CAFiTN-u4uX2imtMVn_Q=7-TibM95gZkrs1Ep_Hnug=aO+r-YLA@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: [HACKERS] POC: Sharing record typmods between backends (Thomas Munro <thomas.munro@enterprisedb.com>) |
| Ответы |
Re: [HACKERS] POC: Sharing record typmods between backends
|
| Список | pgsql-hackers |
On Tue, May 30, 2017 at 1:09 AM, Thomas Munro <thomas.munro@enterprisedb.com> wrote: >> * Perhaps simplehash + an LWLock would be better than dht, but I >> haven't looked into that. Can it be convinced to work in DSA memory >> and to grow on demand? Simplehash provides an option to provide your own allocator function to it. So in the allocator function, you can allocate memory from DSA. After it reaches some threshold it expands the size (double) and it will again call the allocator function to allocate the bigger memory. You can refer pagetable_allocate in tidbitmap.c. -- Regards, Dilip Kumar EnterpriseDB: http://www.enterprisedb.com
В списке pgsql-hackers по дате отправления: