Re: BUG #8681: column 'n_tup_del' of pg_stat_user_tables doesn't change in case of truncate - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #8681: column 'n_tup_del' of pg_stat_user_tables doesn't change in case of truncate
Date
Msg-id 18896.1387239428@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #8681: column 'n_tup_del' of pg_stat_user_tables doesn't change in case of truncate  (Rod Taylor <rod.taylor@gmail.com>)
List pgsql-bugs
Rod Taylor <rod.taylor@gmail.com> writes:
> Why doesn't truncate reset table statistic to 0?

Well, it does reset the counts that correspond to current table size.
This one doesn't though.  n_tup_del is a count of historical operations.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: [BUG] Segmentation fault in pfree in PLy_output_tuple_funcs
Next
From: Tom Lane
Date:
Subject: Re: [BUG] Segmentation fault in pfree in PLy_output_tuple_funcs