RelFileNode to Relation

Поиск
Список
Период
Сортировка
От Soroosh Sardari
Тема RelFileNode to Relation
Дата
Msg-id CAFUsPDaOAogA4XbgW0fQn_TezRZ0TT4ZzP9Ty+Js=xroaiHB+g@mail.gmail.com
обсуждение исходный текст
Ответы Re: RelFileNode to Relation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Patch for reserved connections for replication users
Следующее
От: Tom Lane
Дата:
Сообщение: Re: RelFileNode to Relation