pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: vacuum vs vacuum full
Date: Wed, 18 Nov 2020 03:38:14 -0600
Message-ID: <57bae976-1533-b459-145a-82f76767099b@gmail.com> (raw)
In-Reply-To: <CA+ONtZ5QFB7yc110XdE_d8=7z7HXB_DiNbJ39sz8nf3uUPMcTw@mail.gmail.com>
References: <CA+ONtZ5QFB7yc110XdE_d8=7z7HXB_DiNbJ39sz8nf3uUPMcTw@mail.gmail.com>

On 11/18/20 2: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:
>
> 1. What should be perform on the table Vacuum or Vacuum full ?

The documentation *clearly states* the difference between VACUUM and VACUUM 
FULL.

https://www.postgresql.org/docs/9.6/sql-vacuum.html

> 2. Do we need to perform Analyze also?

I always do.

> 3. Will the operation be completed in the given time frame? how to
> check the same.

How in the heck do we know your system's hardware configuration?

> 4. Who acquire lock on table vacuum or vacuum full.

Read the docs.

> 5. If the activity goes beyond time frame, do we have any option to do
> continue doing t without acquiring lock on the table ?
>
> If you also need the structure of the table, Please let me know.
>
> Please help me by responding my query wise.


-- 
Angular momentum makes the world go 'round.





view thread (19+ messages)  latest in thread

Message-ID: <57bae976-1533-b459-145a-82f76767099b@gmail.com>
Permalink:  ../57bae976-1533-b459-145a-82f76767099b@gmail.com/
Also on:    postgresql.org/message-id/57bae976-1533-b459-145a-82f76767099b@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: ronljohnsonjr@gmail.com
  Subject: Re: vacuum vs vacuum full
  In-Reply-To: <57bae976-1533-b459-145a-82f76767099b@gmail.com>
  References: <CA+ONtZ5QFB7yc110XdE_d8=7z7HXB_DiNbJ39sz8nf3uUPMcTw@mail.gmail.com> <57bae976-1533-b459-145a-82f76767099b@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox