Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULBbr-0000U4-CY for pgsql-admin@arkaria.postgresql.org; Thu, 28 Mar 2013 12:07:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1ULBbq-0004oZ-Tk for pgsql-admin@arkaria.postgresql.org; Thu, 28 Mar 2013 12:07:10 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULBbp-0004oT-Tn for pgsql-admin@postgresql.org; Thu, 28 Mar 2013 12:07:10 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ULBbi-00006t-Oc for pgsql-admin@postgresql.org; Thu, 28 Mar 2013 12:07:09 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1ULBbh-0002gh-LD for pgsql-admin@postgresql.org; Thu, 28 Mar 2013 05:07:01 -0700 Date: Thu, 28 Mar 2013 05:07:01 -0700 (PDT) From: "suhas.basavaraj12" To: pgsql-admin@postgresql.org Message-ID: <1364472421615-5749963.post@n5.nabble.com> Subject: VACUUM ANALYZE AND ANALYZE ISSUE MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 1.4 (+) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi, I was running vacuum analyze on one of heavily bloated table. After the vacuum analyze completed . I did explain on a query . It was going for hash join and sequential scan. Then i issues ANALYZE BLOATED_TABLE; Then when ran explain query , surprisingly it was going for index scan . This was observed in postgres 9.0.1. Ideally VACUUM ANALYSE must have done VACCUM + ANALYZE. But ANALYZE part was pending. Which was completed when i ran analyze on that table . Can any one explain this? Did i miss anything. Rgrds Suhas -- View this message in context: http://postgresql.1045698.n5.nabble.com/VACUUM-ANALYZE-AND-ANALYZE-ISSUE-tp5749963.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin