From: Jeff Boes <jboes@nexcerpt.com>
To: pgsql-admin@postgresql.org
Subject: Multiple indexes or multi-column index?
Date: Tue, 13 Aug 2002 16:14:31 -0400
Message-ID: <ajbpaf$14va$1@news.hub.org> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: jboes@nexcerpt.com
Subject: Re: Multiple indexes or multi-column index?
In-Reply-To: <ajbpaf$14va$1@news.hub.org>
References: <ajbpaf$14va$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox