[HACKERS] Is there any way to access heap_open() from _PG_init ?? - Mailing list pgsql-hackers

From Sairam Gaddam
Subject [HACKERS] Is there any way to access heap_open() from _PG_init ??
Date
Msg-id CAMsN=MALP_M94DP9QtXXnfZTLg-G_g-2TgmUgEu96nOswFbHOA@mail.gmail.com
Whole thread Raw
Responses Re: [HACKERS] Is there any way to access heap_open() from _PG_init ??
List pgsql-hackers
Hello people,

I was trying to build an extension(Index related) on top of postgres. 

During startup (_PG_init), I need to access some meta info of table/relation (like PK Column Position, FK Column Positions, Index Column Positions etc...) and load it into memory. 

To accomplish that, In _PG_init() function,  I tried to use the function heap_open() so that I can get the necessary table/relation info from that relation object, But I was not able to use, and the program is waiting in the heap_open() function indefinitely and postgres quits! Why am I not able to access?

Any workaround to access table relation object/Any way to get that info by some other means?

Thanks, 
Sai Ram

pgsql-hackers by date:

Previous
From: Andreas Joseph Krogh
Date:
Subject: Re: [HACKERS] CTE inlining
Next
From: Amit Kapila
Date:
Subject: Re: [HACKERS] UPDATE of partition key