Re: Trouble with pg_dumpall import with 7.2

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: SET NULL / SET NOT NULL
Следующее
От: Jean-Michel POURE
Дата:
Сообщение: Re: UTF-8 data migration problem in Postgresql 7.2