| От | Tom Lane |
|---|---|
| Тема | Re: Trouble with pg_dumpall import with 7.2 |
| Дата | |
| Msg-id | 134.1014217146@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Trouble with pg_dumpall import with 7.2 (Hervé Piedvache <herve@elma.fr>) |
| Список | pgsql-hackers |
Hervé Piedvache <herve@elma.fr> writes:
> OK it's a bug of postgreSQL 7.2 ??
> I can apply an index on the field datelog where this field is a
> timestamp like :
> create index ix_datelog_date on datelog (date(datelog);
> ERROR: DefineIndex: index function must be marked iscachable
It's not a bug, and it'd not be wise of you to override the decision to
mark date(timestamp) noncachable. The reason it's marked that way is
that timestamp-to-date conversion depends on the TimeZone setting,
not only on the input argument.
If you make a functional index as above, it will misbehave as soon as
you have users with different timezone settings.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера