X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 7067E30E797 for ; Thu, 12 Jun 2003 17:01:37 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 06833-06 for ; Thu, 12 Jun 2003 14:01:27 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id A369D30E6FC for ; Thu, 12 Jun 2003 14:01:24 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5CH1NU6018183; Thu, 12 Jun 2003 13:01:23 -0400 (EDT) To: Jeff Boes Cc: pgsql-admin@postgresql.org Subject: Re: REINDEX by table or by index? In-reply-to: <1055434890.27084.29.camel@takin.private.nexcerpt.com> References: <1055434890.27084.29.camel@takin.private.nexcerpt.com> Comments: In-reply-to Jeff Boes message dated "12 Jun 2003 12:21:30 -0400" Date: Thu, 12 Jun 2003 13:01:23 -0400 Message-ID: <18182.1055437283@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/130 X-Sequence-Number: 9121 Jeff Boes 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