Re: Improving performance on multicolumn query

From: "Steinar H(dot) Gunderson" <sgunderson(at)bigfoot(dot)com>
To: Jan Kesten <jan(dot)kesten(at)web(dot)de>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Improving performance on multicolumn query
Date: 2005-11-09 13:00:17
Message-ID: 20051109130017.GA9229@uio.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

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/

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Christopher Kings-Lynne 2005-11-09 13:19:33 Re: Improving performance on multicolumn query
Previous Message Richard Huxton 2005-11-09 12:54:45 Re: Improving performance on multicolumn query