Re: Create index on the year of a date column

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Create index on the year of a date column
Дата
Msg-id 20030606122916.GC30097@wolff.to
обсуждение исходный текст
Ответ на Create index on the year of a date column  ("Nick Barr" <nick.barr@webbased.co.uk>)
Список pgsql-general
On Thu, Jun 05, 2003 at 17:38:21 +0100,
  Nick Barr <nick.barr@webbased.co.uk> wrote:
> Hi,
>
> I am trying to create an index on the year of a date field, to speed up
> some queries. Table structure is as follows

Wouldn't an index on the plain date work as well? You would have to
make queries for years be range queries instead of equal, but the index
could be used for other things (like ordering by date).

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

Предыдущее
От: Jan Wieck
Дата:
Сообщение: Re: [HACKERS] SAP and MySQL ... [and Benchmark]
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: EXTERN JOIN with WHEN query