Hello,

How can i get the name of a relation from its Oid ?? I have seen some 
functions in utils/cache/relcache.h like RelationIdGetRelation - which gives 
Relation Node from Oid RelationSysNameGetRelation - which gives Relation 
node for only the System names.

Can anyone please tell me how to get Relation node from relation name ???

Thanks,

-Ramu

_________________________________________________________________
Contact brides & grooms FREE! http://www.shaadi.com/ptnr.php?ptnr=hmltag 
Only on www.shaadi.com. Register now!


Wed, 10 Mar 2004 23:28:51 +0530
"Ramanujam H S Iyengar" <hals_ramu@hotmail.com>
How to get RelationName ??
On Wednesday 10 March 2004 09:58 am, Ramanujam H S Iyengar wrote:
> Hello,
>
> How can i get the name of a relation from its Oid ?? I have seen some
> functions in utils/cache/relcache.h like RelationIdGetRelation - which
> gives Relation Node from Oid RelationSysNameGetRelation - which gives
> Relation node for only the System names.
>
> Can anyone please tell me how to get Relation node from relation name ???
>

Won't you have to go get the data from the database for this? I mean 
actually execute the query:

select relname from pg_class where oid = 1234;

-- 
Jonathan Gardner
jgardner@jonathangardner.net

Wed, 10 Mar 2004 15:27:26 -0800
Jonathan Gardner <jgardner@jonathangardner.net>
Re: How to get RelationName ??