Re: Modify existing index

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Modify existing index
Дата
Msg-id 200704210837.44254.peter_e@gmx.net
обсуждение исходный текст
Ответ на Modify existing index  (RPK <rpk.general@gmail.com>)
Ответы Re: Modify existing index
Список 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/

В списке pgsql-general по дате отправления:

Предыдущее
От: William Garrison
Дата:
Сообщение: Re: Passing arrays to stored procedures
Следующее
От: Tom Lane
Дата:
Сообщение: Re: binding 64-bit integer