Re: Modify existing index

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Cc: RPK <rpk(dot)general(at)gmail(dot)com>
Subject: Re: Modify existing index
Date: 2007-04-21 06:37:43
Message-ID: 200704210837.44254.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

RPK wrote:
> I have a table and a column that is primary key. I want to modify the
> existing index and use two other columns to be used for indexing.
> Since queries will be run using these two columns, hence I want to
> use them.

The choice of what your primary key is should arise from the schema
design, not the frequency of queries. If you are querying columns
other than the primary key, just add another index.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-04-21 06:40:23 Re: binding 64-bit integer
Previous Message William Garrison 2007-04-21 05:38:04 Re: Passing arrays to stored procedures