pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: dagamier <zayasj1@yahoo.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_repack in cluster
Date: Mon, 13 Jan 2020 10:36:17 -0800
Message-ID: <397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.com> (raw)
In-Reply-To: <1578930066934-0.post@n3.nabble.com>
References: <1578679285883-0.post@n3.nabble.com>
	<eab28346-78b3-dfa7-9a94-8c399c261f6c@aklaver.com>
	<1578930066934-0.post@n3.nabble.com>

On 1/13/20 7:41 AM, dagamier wrote:
> Can't afford the downtime of a "vaccuum full" and the autovacuum process is
> not cleaning up all the dead space tied up by the database. pg_repack works
> great on my test database in reclaiming disk space (in my tests I got back
> 46% of my disk space back) due to all the deletions that happen in our
> tables. I think that some of the issues are the fact that some of these
> tables are quite large and won't allow for an autovacuum to clean up as well
> as it should. pg_repack allows me to essentially do a "vacuum full" in
> online mode (I thought I read it also rebuilds the indexes as well) and this
> would greatly increase our overall performance on our systems.

I believe more information is needed to come up with an answer:

1) What version of Postgres?

2) What replication are you using logical or binary?

3) Is the space tied up needed by the OS or other programs?
Otherwise VACUUM will mark it as reusable by the database.

4) What are the size of the tables and the deletion churn rate?




-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (4+ messages)

Message-ID: <397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.com>
Permalink:  ../397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.com/
Also on:    postgresql.org/message-id/397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.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: adrian.klaver@aklaver.com, zayasj1@yahoo.com
  Subject: Re: pg_repack in cluster
  In-Reply-To: <397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.com>
  References: <1578679285883-0.post@n3.nabble.com> <eab28346-78b3-dfa7-9a94-8c399c261f6c@aklaver.com> <1578930066934-0.post@n3.nabble.com> <397d08e3-de58-5f8b-271b-6b1e2bacb4ad@aklaver.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