pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nic Chidu <nic@chidu.net>
To: pgsql-admin@postgresql.org
Subject: full vacuum of a very large table
Date: Tue, 29 Mar 2011 11:56:05 -0400
Message-ID: <1301414165.2351.1435136873@webmail.messagingengine.com> (raw)

Got a situation where a 130 mil rows (137GB) table needs to be brought down in size to  10 mil records (most recent)
with the least amount of downtime. 

Doing a full vacuum would be faster on:
 - 120 mil rows deleted and 10 mil active (delete most of them then full vacuum)
 - 10 mil deleted and 120 mil active. (delete small batches and full vacuum after each delete). 

Any other suggestions?

Thanks,

Nic



view thread (8+ messages)  latest in thread

Message-ID: <1301414165.2351.1435136873@webmail.messagingengine.com>
Permalink:  ../1301414165.2351.1435136873@webmail.messagingengine.com/
Also on:    postgresql.org/message-id/1301414165.2351.1435136873@webmail.messagingengine.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: nic@chidu.net
  Subject: Re: full vacuum of a very large table
  In-Reply-To: <1301414165.2351.1435136873@webmail.messagingengine.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