Re: REINDEX on large DB vs. DROP INDEX/CREATE INDEX

From: Vivek Khera <vivek(at)khera(dot)org>
To: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: REINDEX on large DB vs. DROP INDEX/CREATE INDEX
Date: 2008-02-04 15:53:14
Message-ID: 53C6E75D-1334-43BF-865E-8D5B472C055E@khera.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers


On Feb 4, 2008, at 10:00 AM, Wes wrote:

> Just a follow-up on this... The REINDEX took about 2 1/2 days. I
> didn't
> gain much disk space back - a full backup takes just as long as
> before, but
> the vacuum time dropped from 30 hours to 3 hours.

what you need to do is compare the relpages from the pg_class table
for that index before and after.

if you didn't get much disk space back, make sure you have no long
running transactions that may have kept some older files open.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dave Page 2008-02-04 15:54:09 Re: Universal libpq.a ?
Previous Message Ivan Sergio Borgonovo 2008-02-04 15:52:11 lazy validation on complex criterion

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2008-02-04 15:53:52 Re: pgsql: configure tag'd 8.3.0 and built witih autoconf 2.59
Previous Message Roberts, Jon 2008-02-04 15:44:17 Re: Merge condition in postgresql