Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 85D731337B3E for ; Sat, 11 Dec 2010 14:03:12 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 66414-01 for ; Sat, 11 Dec 2010 18:03:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 10FD21337B34 for ; Sat, 11 Dec 2010 14:03:04 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oBBI323R012950; Sat, 11 Dec 2010 13:03:02 -0500 (EST) To: tv@fuzzy.cz cc: pgsql-bugs@postgresql.org, "Magnus Hagander" Subject: Re: not all pg_stat_database fields reset after pg_stat_reset() In-reply-to: References: <4e19b0bfc836f7002752517e7792a0b9.squirrel@sq.gransy.com> <4350.1292088691@sss.pgh.pa.us> Comments: In-reply-to tv@fuzzy.cz message dated "Sat, 11 Dec 2010 18:58:50 +0100" Date: Sat, 11 Dec 2010 13:03:01 -0500 Message-ID: <12949.1292090581@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/76 X-Sequence-Number: 28882 tv@fuzzy.cz writes: >> However, I disagree with resetting last_autovac_time ... that's not a >> counter, so there's no particularly good reason to discard its value. > Oh yeah, I see. Haven't realized that when writing the patch. ... on the other hand, the reset operation is discarding the per-table last-vacuum times, so maybe discarding the database-level value too is more consistent. Not sure. regards, tom lane