need vacuum after insert/truncate/insert?

From: "Craig A(dot) James" <cjames(at)modgraph-usa(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: need vacuum after insert/truncate/insert?
Date: 2006-07-07 01:49:44
Message-ID: 44ADBDB8.5010008@modgraph-usa.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

If I insert a bunch of rows, then truncate, then insert a bunch more rows, do I need to vacuum? I've been assuming that TRUNCATE TABLE is a brute-force technique that more-or-less tosses the old table and starts fresh so that no vacuum is necessary.

Second question: Same scenario as above, but now the table has indexes. Is a reindex needed, or are the indexes they "truncated" too?

Thanks,
Craig

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Chris 2006-07-07 01:51:00 Re: Query plan issue when upgrading to postgres 8.14 (from
Previous Message Mark Kirkwood 2006-07-06 22:51:54 Re: suggested RAID controller for FreeBSD 6.1 + PostgreSQL