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
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply via email to