Multi-column Indexes. What is best Conan?

From: Rodney McDuff <ccmcduff(at)its(dot)uq(dot)edu(dot)au>
To: pgsql-general(at)postgreSQL(dot)org
Subject: Multi-column Indexes. What is best Conan?
Date: 1999-03-10 03:17:28
Message-ID: 199903100317.NAA01227@its.uq.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi
When you have a table with multiple columns and you want indexes on
them you can either
(a) create index table_idx on table using btree ( col1, col2, ..., col7);

or
(b) create index table_col1_idx on table using btree ( col1 );
create index table_col2_idx on table using btree ( col2 );
.
.
.

But what is best?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dustin sallings 1999-03-10 03:39:20 Re: [GENERAL] Multi-column Indexes. What is best Conan?
Previous Message Marcin Grondecki 1999-03-10 03:02:03 Re: [GENERAL] Calcuate percentage.