Re: Create Index on Date portion of timestamp

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Create Index on Date portion of timestamp
Дата
Msg-id 22130.1160771995@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Create Index on Date portion of timestamp  ("Niederland" <niederland@gmail.com>)
Список pgsql-general
"Niederland" <niederland@gmail.com> writes:
> I am using postgresql 8.1.4.
> Is there anyway to create an index equivalent to:
> CREATE INDEX i1 ON t1 USING btree  (ts::Date);

You're short some parentheses:

CREATE INDEX i1 ON t1 USING btree  ((ts::Date));

            regards, tom lane

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

Предыдущее
От: "pobox@verysmall.org"
Дата:
Сообщение: Re: encoding problem
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Create Index on Date portion of timestamp