Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)

2017-05-23 Thread Mahi Gurram
ilable. If such callbacks exists in postgres and you guys know please help me out with that. Thanks & Best Regards, - Mahi On Wed, May 24, 2017 at 11:32 AM, Mahi Gurram wrote: > Hi, > > As Michael said, i'm creating DSA too early. Shared_Preload libraries are > loading prior

Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)

2017-05-23 Thread Mahi Gurram
Hi, As Michael said, i'm creating DSA too early. Shared_Preload libraries are loading prior to memory related stuff. But i'm totally clueless how to solve my use case. Please help me with any work around. Thanks & Best Regards, - Mahi On Tue, May 23, 2017 at 5:52 PM, Mahi Gurram

Re: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)

2017-05-23 Thread Mahi Gurram
cally gets attached. Hence i'm trying to create DSA in _PG_init function as it is called by postmaster/main process. Hope this is clear. Thanks & Best Regards, - Mahi On Tue, May 23, 2017 at 5:30 PM, Michael Paquier wrote: > On Tue, May 23, 2017 at 6:42 AM, Mahi Gurram wrote: &g

Re: [HACKERS] Regarding B-Tree Lookup

2017-05-23 Thread Mahi Gurram
/CStringGetTextDatum etc..) in ScanKeyInit() function as per your PK Data Types. Thanks & Best Regards, - Mahi On Tue, May 2, 2017 at 5:59 PM, Tom Lane wrote: > Michael Paquier writes: > > On Tue, May 2, 2017 at 6:12 PM, Mahi Gurram wrote: > >> Please suggest me the ea

[HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)

2017-05-23 Thread Mahi Gurram
Hello everyone, I'm building In-Memory index extension for Postgres, for which i'm trying to use DSA. But ended with some issues, as it is not allowing me to create DSA(Dynamic Shared Area) in _PG_init function. Please refer my_PG_init code below: > void > _PG_init(void) > { > area = dsa_create(

[HACKERS] Regarding B-Tree Lookup

2017-05-02 Thread Mahi Gurram
Hi, I'm building some custom extension on top of postgres 9.6.1. As part of that, I would like to read Heap Tuple directly from my extension using Primary Key. By default, postgres table index(B-Tree) its PrimaryKey(PK). So, i would like to get TID by doing a lookup into PK's B-Tree index. Using