pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui@crazybean.net>
To: Rahul Saha <rahul.blooming@gmail.com>
Cc: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: [Admin] Reclaim Space from 4 TB Database
Date: Wed, 18 Jul 2018 11:30:51 -0400
Message-ID: <70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net> (raw)
In-Reply-To: <CAEQ0CJh+ybQzk==y8YE_E6QqqwFGMScoFaHUVfqdNV+WFODVug@mail.gmail.com>
References: <CAEQ0CJh+ybQzk==y8YE_E6QqqwFGMScoFaHUVfqdNV+WFODVug@mail.gmail.com>



> On Jul 18, 2018, at 6:17 AM, Rahul Saha <rahul.blooming@gmail.com> wrote:
> 
> Hi Experts,
> 
> Greetings !!
> 
> Background -  PG version 9.4
> Linux - Rhel
> 
> I have a scenario in production environment where the DB size is close to 4 TB and couple of tables are 1.5TB each. 
> 
> Now, as the table are highly transactional therefore there is lot of bloat in tables. While I run Vaccum Full in weekend when there is no incoming connection, vacuum full never completes in 2 days. 
> 
> Firstly, I wanted to know what are the factor I should consider to speed up Vacuum Full process other than investing memory. 
> 
> Secondly are there any other option to reclaim space.  (Pg_repck is a option). I am looking for more option if available. 
> 
> Thank you everyone. 
> -- 
> Thanks & Regards
> Rahul Saha
> 
> +91 8806351116
> 
> Sent from my iPhone

If the table are highly transactional and you have auto vacuum enabled then the tables really should normalize.  I would suggest looking at your auto vacuum settings and being more aggressive about them.  Also consider upgrading to the latest version of Postgres as much work has been done to improve auto vacuum.  



view thread (2+ messages)

Message-ID: <70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net>
Permalink:  ../70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net/
Also on:    postgresql.org/message-id/70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net

 · 

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-admin@postgresql.org
  Cc: rui@crazybean.net, rahul.blooming@gmail.com
  Subject: Re: [Admin] Reclaim Space from 4 TB Database
  In-Reply-To: <70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net>
  References: <CAEQ0CJh+ybQzk==y8YE_E6QqqwFGMScoFaHUVfqdNV+WFODVug@mail.gmail.com> <70718D12-F9B1-48D1-9370-CF3720E07A05@crazybean.net>

* 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