X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8AD02D99AF for ; Wed, 9 Nov 2005 09:00:18 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29568-09 for ; Wed, 9 Nov 2005 13:00:13 +0000 (GMT) X-Greylist: delayed 00:15:50.393567 by SQLgrey- Received: from cassarossa.samfundet.no (cassarossa.samfundet.no [129.241.93.19]) by svr1.postgresql.org (Postfix) with ESMTP id 0E6B6D9965 for ; Wed, 9 Nov 2005 09:00:15 -0400 (AST) Received: from trofast.sesse.net ([129.241.93.32]) by cassarossa.samfundet.no with esmtp (Exim 4.50) id 1EZpYj-0003oo-65; Wed, 09 Nov 2005 14:00:18 +0100 Received: from sesse by trofast.sesse.net with local (Exim 3.36 #1 (Debian)) id 1EZpYn-0002PM-00; Wed, 09 Nov 2005 14:00:17 +0100 Date: Wed, 9 Nov 2005 14:00:17 +0100 From: "Steinar H. Gunderson" To: Jan Kesten Cc: pgsql-performance@postgresql.org Subject: Re: Improving performance on multicolumn query Message-ID: <20051109130017.GA9229@uio.no> Mail-Followup-To: Jan Kesten , pgsql-performance@postgresql.org References: <4371E6A7.50808@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4371E6A7.50808@web.de> X-Operating-System: Linux 2.6.14 on a i686 X-Message-Flag: Outlook? --> http://www.mozilla.org/products/thunderbird/ User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.009 required=5 tests=[AWL=0.009] X-Spam-Score: 0.009 X-Spam-Level: X-Archive-Number: 200511/155 X-Sequence-Number: 15412 On Wed, Nov 09, 2005 at 01:08:07PM +0100, Jan Kesten wrote: > First, I'm using postgresql 7.4.7 on a 2GHz machine having 1.5GByte RAM > and I have a table with about 220 columns and 20000 rows - and the first > five columns build a primary key (and a unique index). I forgot this, but it should be mentioned: A primary key works as an unique index, so you don't need both. /* Steinar */ -- Homepage: http://www.sesse.net/