From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: REINDEX by table or by index?
Date: Thu, 12 Jun 2003 13:01:23 -0400
Message-ID: <18182.1055437283@sss.pgh.pa.us> (raw)
In-Reply-To: <1055434890.27084.29.camel@takin.private.nexcerpt.com>
References: <1055434890.27084.29.camel@takin.private.nexcerpt.com>
Jeff Boes <jboes@nexcerpt.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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, jboes@nexcerpt.com
Subject: Re: REINDEX by table or by index?
In-Reply-To: <18182.1055437283@sss.pgh.pa.us>
References: <1055434890.27084.29.camel@takin.private.nexcerpt.com> <18182.1055437283@sss.pgh.pa.us>
* 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