Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z9Tin-0004cS-8l for pgsql-admin@arkaria.postgresql.org; Mon, 29 Jun 2015 07:43:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z9Tim-0000w1-JC for pgsql-admin@arkaria.postgresql.org; Mon, 29 Jun 2015 07:43:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z9Til-0000ty-1g for pgsql-admin@postgresql.org; Mon, 29 Jun 2015 07:43:15 +0000 Received: from mail-wi0-f181.google.com ([209.85.212.181]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Z9Tih-0003B4-Tv for pgsql-admin@postgresql.org; Mon, 29 Jun 2015 07:43:14 +0000 Received: by wiwl6 with SMTP id l6so91061461wiw.0 for ; Mon, 29 Jun 2015 00:43:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=O8m7mP2661cpuOYlM30fKnd0JWDEshee0woqhGfAdjw=; b=UUi4BQ7p0Uu4SRC9UUKMRse99orlamysImTAey4GNAU7h+Fkw/HaD+ty4kJ58jV7P7 Q/44xAGkDo8TRM73NkADb0xjVdoR0uYglARjcMQMlJTd03bto9l71ZubaKS2L/2W+a7u s7nJHyZ+/coGuUHOLDS/DH8KNytzdNf2zY1xBOaX+YUleusXzAKgF48s5UpTaMR2ZUm3 vI8H+vdX7md3qKuOWb+Ud61JPflNZ1kccHTgZF3Bnd5JizcPNsQ4v+DLGrmpr5wTOG3F qo/038+D38DAMdD1k4BL9/6pS4SwDJmr4/8sDMwEfuBeMfIU14HdxE+eyed/SggddXJa 7KIg== X-Gm-Message-State: ALoCoQmYfN5xVXecGgItcOSRNgy8s/o18bd63gko3uvw4KDnLvL+wrnu9r1cHVMXn+KKgb023vLO X-Received: by 10.180.79.73 with SMTP id h9mr19719503wix.35.1435563790836; Mon, 29 Jun 2015 00:43:10 -0700 (PDT) Received: from [192.168.21.49] (remote.clavistechnology.com. [87.198.179.238]) by mx.google.com with ESMTPSA id xa9sm58152272wjc.43.2015.06.29.00.43.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Jun 2015 00:43:10 -0700 (PDT) Message-ID: <5590F70C.3040004@clavistechnology.com> Date: Mon, 29 Jun 2015 08:43:08 +0100 From: Eoin O'Hehir User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: 76082180.506975.1435347618922.JavaMail.yahoo@mail.yahoo.com, "pgsql-admin@postgresql.org" Subject: Re: Does VACUUM FULL need ANALYZE ? References: <76082180.506975.1435347618922.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <76082180.506975.1435347618922.JavaMail.yahoo@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) 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 Thanks Kevin. That provides a lot of clarity. Cheers. On 26/06/15 20:40, Kevin Grittner wrote: > 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