pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Arnau <arnaulist@andromeiberica.com>
To: pgsql-performance@postgresql.org
Subject: Massive delete of rows, how to proceed?
Date: Fri, 24 Nov 2006 19:43:34 +0100
Message-ID: <45673D56.10707@andromeiberica.com> (raw)

Hi all,

   I have a table with statistics with more than 15 million rows. I'd
like to delete the oldest statistics and this can be about 7 million
rows. Which method would you recommend me to do this? I'd be also
interested in calculate some kind of statistics about these deleted
rows, like how many rows have been deleted for date. I was thinking in
creating a function, any recommendations?

Thank you very much
-- 
Arnau



view thread (4+ messages)  latest in thread

Message-ID: <45673D56.10707@andromeiberica.com>
Permalink:  ../45673D56.10707@andromeiberica.com/
Also on:    postgresql.org/message-id/45673D56.10707@andromeiberica.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-performance@postgresql.org
  Cc: arnaulist@andromeiberica.com
  Subject: Re: Massive delete of rows, how to proceed?
  In-Reply-To: <45673D56.10707@andromeiberica.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