| От | Jasen Betts |
|---|---|
| Тема | Re: Exclusion constraints with time expressions |
| Дата | |
| Msg-id | k89ebo$3r8$2@reversiblemaps.ath.cx обсуждение исходный текст |
| Ответ на | Exclusion constraints with time expressions (Thomas Munro <munro@ip9.org>) |
| Список | pgsql-general |
On 2012-11-06, Albe Laurenz <laurenz.albe@wien.gv.at> wrote: > hari.fuchs@gmail.com wrote: >> > I think the problem is that this + operator is implemented >> > by the function "timestamptz_pl_interval", which is STABLE >> > but not IMMUTABLE. >> > >> > I am not sure why this function cannot be IMMUTABLE, it >> > seems to me that it should be. >> >> No: the result of e.g. >> >> SELECT TIMESTAMPTZ '2012-10-28 01:30:00' + INTERVAL '24 hours'; >> >> depends on the client's timezone and its DST rules. > > You are right; timestamptz_in itself is STABLE, and I forgot > about daylight savings time. The original poster had a timestamptz constant (using the naval timezone 'Z') yet he still had the problem., -- ⚂⚃ 100% natural
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера