Re: RelFileNode to Relation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: RelFileNode to Relation
Date: 2013-10-19 08:23:57
Message-ID: 9372.1382171037@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com> writes:
> I need to get a Relation instance but I have only a RelFileNode!

Why do you think you need to do that? Such a lookup is inherently the
wrong thing, because relations' relfilenode values are not fixed (unless
you have a lock on the relation, which presumably you don't).

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Soroosh Sardari 2013-10-19 08:39:29 Re: RelFileNode to Relation
Previous Message Soroosh Sardari 2013-10-19 07:33:51 RelFileNode to Relation