Which func tells the tuple size of a given relation? - Mailing list pgsql-hackers

From John
Subject Which func tells the tuple size of a given relation?
Date
Msg-id BAY105-DAV13A7C605039BCCD35E7022ACFD0@phx.gbl
Whole thread Raw
In response to Attempting upgrade path; is this possible?  ("Shaun Thomas" <sthomas@leapfrogonline.com>)
List pgsql-hackers
I am hacking the parser to do multi-class-classification. I am wondering 
which function can tell the size of a relation. I tried to do something like
          int row_sz = 0;         pgstat_count_heap_fetch(&rel->pgstat_info);         row_sz = ((PgStat_TableEntry 
*)((&rel->pgstat_info)->tabentry))->t_tuples_fetched;

But the system does not like it and the DB broke down halfway.

Thanks,
John 


pgsql-hackers by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Request: set opclass for generated unique and primary
Next
From: "Jim C. Nasby"
Date:
Subject: Re: Pgfoundry and gborg: shut one down