Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsiLZ-0007lN-Bv for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Dec 2013 00:17:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VsiLY-0004Ca-Qx for pgsql-bugs@arkaria.postgresql.org; Tue, 17 Dec 2013 00:17:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsiLY-0004Bl-0Z for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 00:17:12 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VsiLV-0008Rc-Md for pgsql-bugs@postgresql.org; Tue, 17 Dec 2013 00:17:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rBH0H8BH018897; Mon, 16 Dec 2013 19:17:08 -0500 From: Tom Lane To: Rod Taylor cc: Stephen Frost , Anit Chakkarwar , pgsql-bugs@postgresql.org Subject: Re: BUG #8681: column 'n_tup_del' of pg_stat_user_tables doesn't change in case of truncate In-reply-to: References: <25088.1386956692@sss.pgh.pa.us> <20131216155037.GP2543@tamriel.snowman.net> Comments: In-reply-to Rod Taylor message dated "Mon, 16 Dec 2013 18:06:51 -0500" Date: Mon, 16 Dec 2013 19:17:08 -0500 Message-ID: <18896.1387239428@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Rod Taylor 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 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs