Re: REINDEX by table or by index?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Boes <jboes(at)nexcerpt(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: REINDEX by table or by index?
Date: 2003-06-12 17:01:23
Message-ID: 18182.1055437283@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Jeff Boes <jboes(at)nexcerpt(dot)com> writes:
> Given a fairly large (7 MRows or so) table with more than one index
> (say, two): would it be theoretically faster to do
> REINDEX TABLE "foo";
> or
> REINDEX INDEX "ix_foo_one";
> REINDEX INDEX "ix_foo_two";

I doubt you could possibly detect any difference. The indexes are
rebuilt one at a time in any case, and the statement-level overhead
is insignificant.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2003-06-12 17:16:07 Re: Still confused about VACUUM vs. VACUUM FULL
Previous Message Tom Lane 2003-06-12 16:59:30 Re: Backends "idle in transaction"