Re: Error trying to create a functional index.

Поиск
Список
Период
Сортировка
От CoL
Тема Re: Error trying to create a functional index.
Дата
Msg-id 3C3ADEA7.9090303@mportal.hu
обсуждение исходный текст
Ответ на Re: Error trying to create a functional index.  (CoL <col@mportal.hu>)
Список pgsql-sql
Hi,

Jochem van Dieten wrote:

> CoL wrote:
> 
>> Steve: of course you can make functional indices:
>>
>> So why this not workin???? (not workin for me 2 too, pg 7.1.3)
>> "CREATE INDEX eventdateindex ON event (date_trunc('day', eventstamp));"
>>
> 
> Wouldn't your problem be that 'day' is a constant?
> Jochem

sure it is, but date_trunc takes this, so what is the way to create a date_trunc part or any 

date function index on a timestamp?

Or it's not possible?

CoL




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

Предыдущее
От: "steve boyle"
Дата:
Сообщение: Re: SQL Joins
Следующее
От: "Ali Gumus"
Дата:
Сообщение: Search The pg.pm