X-Original-To: pgsql-general@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 7E0E89250E8 for ; Fri, 23 May 2003 14:17:28 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 50078-04 for ; Fri, 23 May 2003 14:17:19 -0400 (EDT) Received: from yertle.kcilink.com (yertle.kcilink.com [216.194.193.105]) by developer.postgresql.org (Postfix) with ESMTP id 81968924FFD for ; Fri, 23 May 2003 14:04:44 -0400 (EDT) Received: by yertle.kcilink.com (Postfix, from userid 100) id 998632178C; Fri, 23 May 2003 14:04:28 -0400 (EDT) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16078.25260.512996.337914@yertle.int.kciLink.com> Date: Fri, 23 May 2003 14:04:28 -0400 To: pgsql-general@postgresql.org Subject: Re: [ADMIN] Q: Structured index - which one runs faster? In-Reply-To: <17188.1053711517@sss.pgh.pa.us> References: <5.1.1.6.2.20030522223909.05929600@mail.vogelsinger.at> <11951.1053643980@sss.pgh.pa.us> <17188.1053711517@sss.pgh.pa.us> X-Mailer: VM 7.14 under 21.4 (patch 12) "Portable Code" XEmacs Lucid X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/926 X-Sequence-Number: 42581 >>>>> "TL" == Tom Lane writes: >> In particular, is user_list_owner_id redundant to >> user_list_oid_created? TL> Any of the three indexes can be used for a search on owner_id alone, so TL> yeah, user_list_owner_id is redundant. It would be marginally faster to TL> use user_list_owner_id for such a search, just because it's physically TL> smaller than the other two indexes, but against that you have to balance TL> the extra update cost of maintaining the additional index. This is great info. That extra index is gonna be nuked in about 37.23 seconds... It takes up a lot of space and is wasting time with updates and inserts, which happen a *lot* on that table (nearly 10 million rows). Thanks!