Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WsjTs-0002mQ-7o for pgsql-performance@arkaria.postgresql.org; Fri, 06 Jun 2014 02:02:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WsjTr-0000MC-NY for pgsql-performance@arkaria.postgresql.org; Fri, 06 Jun 2014 02:02:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsjTr-0000M6-1F for pgsql-performance@postgresql.org; Fri, 06 Jun 2014 02:02:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WsjTn-0008Fx-LV for pgsql-performance@postgresql.org; Fri, 06 Jun 2014 02:02:05 +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 s56221pY032563; Thu, 5 Jun 2014 22:02:01 -0400 From: Tom Lane To: tim_wilson cc: pgsql-performance@postgresql.org Subject: Re: Re: autovacuum vacuum creates bad statistics for planner when it log index scans: 0 In-reply-to: <1402016119875-5806283.post@n5.nabble.com> References: <1400459729388-5804416.post@n5.nabble.com> <11299.1400559202@sss.pgh.pa.us> <1402016119875-5806283.post@n5.nabble.com> Comments: In-reply-to tim_wilson message dated "Thu, 05 Jun 2014 17:55:19 -0700" Date: Thu, 05 Jun 2014 22:02:01 -0400 Message-ID: <32562.1402020121@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org tim_wilson writes: > Thanks for you response Tom: > but what does index_scans:0 mean? vs index scans: 1? I believe the former means that VACUUM found no removable tuples, so it had no need to make any passes over the table's indexes. (Ordinarily you wouldn't see the number of scans as more than 1, unless VACUUM removed quite a lot of dead tuples, more than it could remember within maintenance_work_mem; in which case it would make multiple passes over the indexes to remove index entries.) regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance