Re: Get relid for a relation

2023-01-13 Thread Tom Lane
Amin writes: > In CustomScan cost estimator, where PlannerInfo and RelOptInfo are passed, > I want to get access to the relation stats (for example pg_stat_all_tables) > by calling pg_stat_fetch_stat_tabentry(). However, I don't have access to > relid to pass to this function. Sure you do. The e

Get relid for a relation

2023-01-13 Thread Amin
Hi, In CustomScan cost estimator, where PlannerInfo and RelOptInfo are passed, I want to get access to the relation stats (for example pg_stat_all_tables) by calling pg_stat_fetch_stat_tabentry(). However, I don't have access to relid to pass to this function. For a sample relation, when I hardcod