Re: Massive delete of rows, how to proceed? - Mailing list pgsql-performance

From andrew@pillette.com
Subject Re: Massive delete of rows, how to proceed?
Date
Msg-id 200611260035.kAQ0Z1G02487@pillette.com
Whole thread Raw
In response to Massive delete of rows, how to proceed?  ("Peter Childs" <peterachilds@gmail.com>)
List pgsql-performance
I don't believe DROP is necessary; use TRUNCATE instead. No need to re-create dependent objects.

"Peter Childs" <peterachilds@gmail.com> wrote ..
> On 24/11/06, Arnau <arnaulist@andromeiberica.com> wrote:
> > 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?
>
>
> Copy and drop old table. If you delete you will have a massive problem
> with a bloated table and  vacuum will not help unless you expect the
> table to grow to this size regulally otherwise vacuum full will take
> ages.
>
> Peter.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

pgsql-performance by date:

Previous
From: "Peter Childs"
Date:
Subject: Massive delete of rows, how to proceed?
Next
From: Joost Kraaijeveld
Date:
Subject: When to vacuum a table?