[HACKERS] Finding relfilenode

2014-04-24 Thread Soroosh Sardari
Hi In cost functions such as cost_seqscan, a RelOptinfo indicate a base relation. But there is no relfilenode in the RelOptinfo, So how could i find relfilenode or reloid of the relation? Thanks, Soroosh Sardari

Re: [HACKERS] Finding relfilenode

2014-04-24 Thread Tom Lane
Soroosh Sardari soroosh.sard...@gmail.com writes: In cost functions such as cost_seqscan, a RelOptinfo indicate a base relation. But there is no relfilenode in the RelOptinfo, So how could i find relfilenode or reloid of the relation? You could get the table OID out of the associated RTE.