Re: indices and casts

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: indices and casts
Дата
Msg-id 24903.1097533924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на indices and casts  (Rosser Schwarz <rosser.schwarz@gmail.com>)
Ответы Re: indices and casts  (Rosser Schwarz <rosser.schwarz@gmail.com>)
Список pgsql-admin
Rosser Schwarz <rosser.schwarz@gmail.com> writes:
> Is it possible to do something functionally equivalent to "CREATE
> INDEX name ON table USING btree(column::date)"?  That statement yields
> a syntax error on the "::".

CREATE INDEX name ON table USING btree((column::date))

See the docs concerning indexes on expressions (formerly called
functional indexes).  The parens are needed to avoid syntactic ambiguity
associated with the optional opclass name ...

            regards, tom lane

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

Предыдущее
От: Rosser Schwarz
Дата:
Сообщение: indices and casts
Следующее
От: Rosser Schwarz
Дата:
Сообщение: Re: indices and casts