pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedREINDEX by table or by index?
2+ messages / 2 participants
[nested] [flat]
* REINDEX by table or by index?
@ 2003-06-12 16:21 Jeff Boes <jboes@nexcerpt.com>
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Boes @ 2003-06-12 16:21 UTC (permalink / raw)
To: pgsql-admin
[Apologies if you have seen this before. I just discovered that posting
to the group via NNTP, at Teranews.com, apparently isn't working since
my posts aren't showing up in the mailing list archives.]
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";
and
REINDEX INDEX "ix_foo_two";
in another session? (The system in question has two CPUs, if that makes
any difference.)
--
Jeff Boes vox 269.226.9550 ext 24
Database Engineer fax 269.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: REINDEX by table or by index?
@ 2003-06-12 17:01 Tom Lane <tgl@sss.pgh.pa.us>
parent: Jeff Boes <jboes@nexcerpt.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-06-12 17:01 UTC (permalink / raw)
To: Jeff Boes <jboes@nexcerpt.com>; +Cc: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-06-12 17:01 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-06-12 16:21 REINDEX by table or by index? Jeff Boes <jboes@nexcerpt.com>
2003-06-12 17:01 ` Tom Lane <tgl@sss.pgh.pa.us>
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