From: | Dilip Kumar <dilipbalaut(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> |
Cc: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: POC: Sharing record typmods between backends |
Date: | 2017-05-30 06:45:31 |
Message-ID: | CAFiTN-u4uX2imtMVn_Q=7-TibM95gZkrs1Ep_Hnug=aO+r-YLA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, May 30, 2017 at 1:09 AM, Thomas Munro
<thomas(dot)munro(at)enterprisedb(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Konstantin Knizhnik | 2017-05-30 07:06:15 | Re: Proposal : For Auto-Prewarm. |
Previous Message | Beena Emerson | 2017-05-30 06:43:33 | Re: Default Partition for Range |