Re: any way to make query use index?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: any way to make query use index?
Дата
Msg-id 4199.1195145525@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: any way to make query use index?  ("Chris Hoover" <revoohc@gmail.com>)
Список pgsql-admin
"Chris Hoover" <revoohc@gmail.com> writes:
> On Nov 15, 2007 11:25 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If changing the queries seems impractical, you could add an index on
>> rev_code::text, or reconsider the choice of column type.

> how would you create this index?  create index rev_code_text_idx on
> rev_code_desc(rev_code::text) fails complaining "ERROR:  syntax error
> at or near "::""

You need more parentheses --- read the docs about expression indexes.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Error: duplicate key violates unique constraint - "pg_toast_3270368541_index
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: help to Brazil