RelFileNode to Relation - Mailing list pgsql-hackers

From Soroosh Sardari
Subject RelFileNode to Relation
Date
Msg-id CAFUsPDaOAogA4XbgW0fQn_TezRZ0TT4ZzP9Ty+Js=xroaiHB+g@mail.gmail.com
Whole thread Raw
Responses Re: RelFileNode to Relation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi

I need to get a Relation instance but I have only a RelFileNode!
I see the relcache.h, only the following function seems helpful

extern Relation RelationIdGetRelation(Oid relationId);

However, there is another problem, In the RelFileNode, only relNode exist and as comment said this is equivalent to pg_class.relfilenode and in some situation relation oid (pg_class.oid) and relation file node are not the same.

So i cant use above function!

Any idea?

Regards,
Soroosh Sardari
Sharif University of Tech.

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Patch for reserved connections for replication users
Next
From: Tom Lane
Date:
Subject: Re: RelFileNode to Relation