Multiple indexes or multi-column index? - Mailing list pgsql-admin

From Jeff Boes
Subject Multiple indexes or multi-column index?
Date
Msg-id ajbpaf$14va$1@news.hub.org
Whole thread Raw
Responses Re: Multiple indexes or multi-column index?
List pgsql-admin
Given a large (100,000+ rows) table such as:

CREATE TABLE foo (
  a INTEGER,
  b INTEGER,
  c TIMESTAMP,
  d TEXT
  /* possibly several more columns in here */
);

What are the pros and cons of these two different approaches to indexes?

CREATE huge_index ON foo (a,b,c,d);

vs.

CREATE a_index ON foo (a);
CREATE b_index ON foo (b);
CREATE c_index ON foo (c);
CREATE d_index ON foo (d);

--
Jeff Boes                                      vox 269.226.9550 ext 24
Database Engineer                                     fax 269.349.9076
Nexcerpt, Inc.                                 http://www.nexcerpt.com
           ...Nexcerpt... Extend your Expertise

pgsql-admin by date:

Previous
From: Thomas O'Connell
Date:
Subject: Re: performance tuning: shared_buffers, sort_mem; swap
Next
From: Oleg Bartunov
Date:
Subject: Re: Multiple indexes or multi-column index?