Index creation

Поиск
Список
Период
Сортировка
От Yambu
Тема Index creation
Дата
Msg-id CALhHtcCO=nBCBRMJfx_s9dGMwPRoH+GmBQSC2X8bGgGLE-OA6A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Index creation
RE: Index creation
Список pgsql-sql
hello people, I would like to create an index so that the query on here can use it,

SELECT    *
FROM    table_name
WHERE (code_id = 1    OR code_id = 2    OR (code_id = 3        AND created_date < now()))
LIMIT 1;  

please advise me on how I should create index. I created index on code_id but it's not being used

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

Предыдущее
От: Bo Guo
Дата:
Сообщение: Re: Getting transaction details from the WAL?
Следующее
От: David Rowley
Дата:
Сообщение: Re: Index creation