Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfK1R-0001Cf-Nv for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 09:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfK1Q-0006jl-NJ for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 09:45:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfK1Q-0006j0-D9 for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 09:45:04 +0000 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfK1O-0007PJ-8i for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 09:45:03 +0000 Received: by mail-ot1-x32c.google.com with SMTP id f16so1130070otl.11 for ; Wed, 18 Nov 2020 01:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=yeSxVYOc5er4uUSwQSJkGgwD56nHT7jjug/sXbqr4zc=; b=GJ0pzhfxbH7lnaTqPDz+Vds2ZHK8/TXgTKmyNX4oDnHjKmR0vlrmKIjKMrb7YvtWqd tGkBN+NpWIlVeOdzY3qXCI+hq7wdYwqW2nyZfNQGqPGMjIqyW2ES2l8GJvxs72Dlhx+I lynTlkaJ9cPzLVhXmM/Z4qIbyUpk3CCEnH6WUgHbSEDxWkipxkyMwlE1idUoc8wDKaER bpJIbvOYWiPsai6OxFgG8/Mvvdjm8LSci2xBAweXqW9cdFKRmvN2UVYVxRhcApRWGVP6 IubVFIZJZ41K5v3hBTqya72zVmiscnQ7P6YpPbh2iwJkzwyz6b74deC+wnBrggIB9TNd 6mAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=yeSxVYOc5er4uUSwQSJkGgwD56nHT7jjug/sXbqr4zc=; b=jDn4AW4NFXt/pKMO4JGJXC0OKVoIZ8npQe2tr2pLXfR/98QgvoYa7q0jxNuEH/eK/K sfwgj5xwifPYtCXF5s1OTL6rXNsjyRe21rMJQmhzsTkDPBUiURHLWbZEVGgdtRdC8dtM pYZrneTOPJVSrxgeL539fUX5ZxiX9JY5D9+DJVRkvAmHIlxd8o5O8JBRX/yfOPBgIeBC F4jfPy3KKDbjGjxQfo/ccjV00zS8rLR1E5ShEwV6RaeinaTzIPldFI88WiAQFkFvf79f o0x3ANrONwYnQoK0CuUjmVhg0os3dbD9WooHXKW3J3TOjG3d0kVmue+rLU48jPPTmz4K wHaw== X-Gm-Message-State: AOAM531hdzkey2NvpUu4QQRkI9zLV+w0HAkmvNclQ4S4dmBToeDJnFH8 qLIe8KH929Mnbcggv3KVVUMMnORAA4Jo4Q== X-Google-Smtp-Source: ABdhPJzPOJxUVW5vcHie0wd3eePQLpMl6KBAZT5Lt/LauHBpCoS7CQ6fRRf9L431dt5FGk3cUTqHyg== X-Received: by 2002:a05:6830:1319:: with SMTP id p25mr6019827otq.33.1605692701031; Wed, 18 Nov 2020 01:45:01 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id w14sm7642099oou.16.2020.11.18.01.45.00 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 18 Nov 2020 01:45:00 -0800 (PST) Subject: Re: vacuum vs vacuum full To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <80603b4e-058c-fd9e-8e8c-50010dc32572@gmail.com> Date: Wed, 18 Nov 2020 03:44:59 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------EFC2477927C73FBC1839398E" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------EFC2477927C73FBC1839398E Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 11/18/20 3:41 AM, Olivier Gautherot wrote: > Hi Atul, > > On Wed, Nov 18, 2020 at 9:33 AM Atul Kumar > wrote: > > Hi, > > We have a table of 3113GB, and we are planning to vacuum it in non > business hours i.e. 12AM to 4AM, So my queries are: > [snip] > > 3. Will the operation be completed in the given time frame? how to > check the same. > > > Given the size of the table, it will probably take several days. No matter how long it takes, this is an excellent argument for partitioning Very Large Tables: many maintenance tasks are made *much* easier. -- Angular momentum makes the world go 'round. --------------EFC2477927C73FBC1839398E Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 11/18/20 3:41 AM, Olivier Gautherot wrote:
Hi Atul,

On Wed, Nov 18, 2020 at 9:33 AM Atul Kumar <akumar14871@gmail.com> wrote:
Hi,

We have a table of 3113GB, and we are planning to vacuum it in non
business hours i.e. 12AM to 4AM, So my queries are:
[snip]
 
3. Will the operation be completed in the given time frame? how to
check the same.

Given the size of the table, it will probably take several days.

No matter how long it takes, this is an excellent argument for partitioning Very Large Tables: many maintenance tasks are made much easier.



--
Angular momentum makes the world go 'round.
--------------EFC2477927C73FBC1839398E--