Re: postgres 7.4 at 100%

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Re: postgres 7.4 at 100%
Дата
Msg-id 40E28FCA.4010409@familyhealth.com.au
обсуждение исходный текст
Ответ на Re: postgres 7.4 at 100%  (Chris Cheston <ccheston@gmail.com>)
Список pgsql-performance
> I see - thanks very much. I created an index for column 'oid' which I
> was using in a WHERE.  So rule of thumb- create an index for column(s)
> which I use in WHERE queries.

So to speak.  They can also sometimes assist in sorting.  The OID column
is special.  I suggest adding a unique index to that column.  In
postgresql it is _possible_ for the oid counter to wraparound, hence if
you rely on oids (not necessarily a good idea), it's best to put a
unique index on the oid column.

I _strongly_ suggest that you read this:

http://www.postgresql.org/docs/7.4/static/indexes.html

Chris


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

Предыдущее
От: Chris Cheston
Дата:
Сообщение: Re: postgres 7.4 at 100%
Следующее
От: "Bill"
Дата:
Сообщение: Re: Query performance