Suppose there is a table t1 with 10 data. If I count like
select count(a) from t1
then how tup_fetched and tup_returned will count those information in pg_stat_database view;
As per my understanding tup_returned means it return total 10 record.
and tup_fetched means it fetched 1 record from those returned value which is count=10 rows
But at pg_stat_database details I found when I create database or create any table those value increased and also for table data search those column value increased. Anyone can clear it to me why it is behave like this?

