Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8ZUU-0002WF-7y for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jun 2015 19:40:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z8ZUS-0004vi-TB for pgsql-admin@arkaria.postgresql.org; Fri, 26 Jun 2015 19:40:44 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z8ZUD-0004d4-2R for pgsql-admin@postgresql.org; Fri, 26 Jun 2015 19:40:29 +0000 Received: from nm13-vm4.bullet.mail.ne1.yahoo.com ([98.138.91.173]) by makus.postgresql.org with esmtps (TLS1.0:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z8ZU5-0005gY-4a for pgsql-admin@postgresql.org; Fri, 26 Jun 2015 19:40:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1435347619; bh=9eRdz+irud7gFy55qy44gE+QJav+MI1X4c2y6ZWhIPY=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=ZE/EWM+R5d2YGSMiqvkRRaQNJNW/BNanRNvhNcpIJRe19WgzlGh5kA8eowI5pJ+2y8gjuObopWTWU5pSfYvHRd9w4zYe3Bv+tkj6y2Ntj+4HGfYCHqb4tdj4d5MCn48NZX5nv4sqsOvEGypgor+aIv3M0e+UDNfFEJY+yX1OkzMaEBmtJNDknI80rvOT/y8rOVeu4Ac3jij1S7MTl/yB6i62BjZK6ILS0fQjXelGhkNDo0+gbzSL/5wc31A4SM/U8GRX/HRGphePBNq2Sn9BMG9qq6Iyu+1bkHWb7NUrnXAcz5U38Ba2Si/HU+rLwfLztvHL1JghDxgAfty+j8irmQ== Received: from [98.138.101.128] by nm13.bullet.mail.ne1.yahoo.com with NNFMP; 26 Jun 2015 19:40:19 -0000 Received: from [98.138.89.195] by tm16.bullet.mail.ne1.yahoo.com with NNFMP; 26 Jun 2015 19:40:19 -0000 Received: from [127.0.0.1] by omp1053.mail.ne1.yahoo.com with NNFMP; 26 Jun 2015 19:40:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 800425.17232.bm@omp1053.mail.ne1.yahoo.com X-YMail-OSG: lE3kBp8VM1lbyJRqSNcrLIdDZzgh0VRm07gxrbSqypcQj1tOSPXP0OcKhgukd8w DmPBUQ4lewuMKPX8nChXkIP8qNSy2eHOW9Z2PZSWh3yIeJzwIU4_E.v46wxkejUQNaDzBn8MAu9z MSFo5YfjvGrMCdZZj0YjxoiJ9.jThM2zu9f3FCxqT_dCozMNF.iqKfs.VrnrLUirFQUEWOfh_pw8 IiPe5x9d3lQZwgpiv_kVgq8Yaod1qf5ZWdkJnqBFoB0VdSz8V24SqVKie1Ql8a2YzSX73ylIHFJx FCZ9BXa2AevU5fDO83564rB6xgTuMy0VwEXGUpIowZSJ4DJ3KW9BUAdFfqTyCG8vOulzmtH8Bv81 fa6CEzv3lwXZzHPGEaoXjGJh3AhmiD95S8wbY.6OzXA02WlfRkDInYmVJvDkVEL0h_aZEPBDBD7L uS0NUbOwMT0jmvMGB9nZ2g971wp8ZBdK874hO0CSrSM.lupNBcnzOA9BXQ9ATBdIq Received: by 98.138.105.223; Fri, 26 Jun 2015 19:40:19 +0000 Date: Fri, 26 Jun 2015 19:40:18 +0000 (UTC) From: Kevin Grittner Reply-To: Kevin Grittner To: Eoin O'Hehir , "pgsql-admin@postgresql.org" Message-ID: <76082180.506975.1435347618922.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: References: Subject: Re: Does VACUUM FULL need ANALYZE ? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Length: 934 X-Pg-Spam-Score: -2.0 (--) 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 Eoin O'Hehir wrote: > I'm setting up a weekly DB maintenance job for a 9.3 server. > > Part of this will be a VACUUM FULL. That's something to seriously reconsider. > Is there any point in adding the ANALYZE option to the command ? That and a non-FULL VACUUM command after VACUUM FULL. Unlike what you might expect based on the FULL option, a VACUUM FULL does not do everything that a non-FULL VACUUM does, and actually drops any existing visibility map and free space map -- potentially making subsequent queries against the table slower until a normal VACUUM (or autovacuum occurs). I strongly recommend that if you really do need to use VACUUM FULL, you immediately follow it with VACUUM ANALYZE. You might also want to read this: http://rhaas.blogspot.com/2014/03/vacuum-full-doesnt-mean-vacuum-but.html -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin