Which func tells the tuple size of a given relation?

From: "John" <xiaoqianjiang(at)hotmail(dot)com>
To: <pgsql-hackers(at)postgresql(dot)org>
Subject: Which func tells the tuple size of a given relation?
Date: 2006-02-22 23:53:08
Message-ID: BAY105-DAV13A7C605039BCCD35E7022ACFD0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-02-23 00:16:23 Re: Pgfoundry and gborg: shut one down
Previous Message Stephan Szabo 2006-02-22 22:56:42 Re: Request: set opclass for generated unique and primary