Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 67F7047595D for ; Tue, 13 Aug 2002 16:14:08 -0400 (EDT) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id E1222475943 for ; Tue, 13 Aug 2002 16:14:07 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 6F1F53820E9; Tue, 13 Aug 2002 16:14:07 -0400 (EDT) From: Jeff Boes X-Newsgroups: comp.databases.postgresql.admin Subject: Multiple indexes or multi-column index? Date: Tue, 13 Aug 2002 16:14:31 -0400 Organization: Nexcerpt, Inc. Lines: 26 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: news@hub.org User-Agent: Pan/0.11.3 (Unix) X-Comment-To: ALL To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/165 X-Sequence-Number: 5280 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