RelFileNode to Relation

From: Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: RelFileNode to Relation
Date: 2013-10-19 07:33:51
Message-ID: CAFUsPDaOAogA4XbgW0fQn_TezRZ0TT4ZzP9Ty+Js=xroaiHB+g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2013-10-19 08:23:57 Re: RelFileNode to Relation
Previous Message Amit Kapila 2013-10-19 06:39:57 Re: Patch for reserved connections for replication users