Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 0276F2E008E for ; Wed, 26 Mar 2008 11:51:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 60163-04-3 for ; Wed, 26 Mar 2008 11:51:07 -0300 (ADT) X-Greylist: delayed 00:32:12.248016 by SQLgrey-1.7.5 Received: from morework.geizhals.at (home.geizhals.at [213.229.14.34]) by postgresql.org (Postfix) with ESMTP id 0A24E2E0099 for ; Wed, 26 Mar 2008 11:51:15 -0300 (ADT) Received: from localhost (morework [127.0.0.1]) by morework.geizhals.at (Postfix) with ESMTP id 7C67418C165 for ; Wed, 26 Mar 2008 15:18:58 +0100 (CET) X-Virus-Scanned: amavisd-new at geizhals.at Received: from morework.geizhals.at ([127.0.0.1]) by localhost (morework.geizhals.at [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PBtFo0r2onv6 for ; Wed, 26 Mar 2008 15:18:50 +0100 (CET) Received: from [172.16.43.6] (unknown [172.16.43.6]) by morework.geizhals.at (Postfix) with ESMTP for ; Wed, 26 Mar 2008 15:18:50 +0100 (CET) Message-ID: <47EA5B4D.5000300@geizhals.at> Date: Wed, 26 Mar 2008 15:18:53 +0100 From: Marinos Yannikos User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: 1-/2-dimensional indexes for common columns, rationale? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/483 X-Sequence-Number: 29437 Hello, we have several indexes such as: create index foo1 on bla (a); create index foo2 on bla (b); create index foo3 on bla (a,b); They are all used often by frequently used queries (according to pg_statio_user_indexes), but we need somewhat higher INSERT/UPDATE performance (having tuned most other things) so we'd like to remove some. Which of the above would generally speaking be most redundant / best to remove? Is a 2-dimensional index always much slower than a 1-dimensional with the first column for queries on the first column? Any other suggestions? Thanks, Marinos