Creating an index on a timestamp with time zone cast to a date-- possible?

Поиск
Список
Период
Сортировка
От Wells Oliver
Тема Creating an index on a timestamp with time zone cast to a date-- possible?
Дата
Msg-id CAOC+FBX+0=rvSsVRA8=PZAc9ccDq--c5OUiQ0WNxGzGgxh_-eA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Creating an index on a timestamp with time zone cast to a date-- possible?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Seems you can't do this:

create index on someschema.sometable ((modified_at::date));

If modified_at is a timestamp with a time zone:

ERROR:  functions in index expression must be marked IMMUTABLE

But you can if it's a timestamp without a time zone. Anyway, any way of casting that as to use it as an index?

--

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

Предыдущее
От: Don Seiler
Дата:
Сообщение: Re: WALWriteLocks
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Creating an index on a timestamp with time zone cast to a date-- possible?