Re: Incorrect handling of timezones with extract

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Incorrect handling of timezones with extract
Дата
Msg-id 513F6792.3020907@agliodbs.com
обсуждение исходный текст
Ответ на Re: Incorrect handling of timezones with extract  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Incorrect handling of timezones with extract  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> and extract(day) from that gives -2 not -3.  You could argue that this
> definition of timestamp subtraction isn't too consistent with the
> timestamp-plus-interval operator, and you'd be right; but I doubt we'd
> consider changing it now.

We specifically added that feature to support production calendaring
applications; I worked on it with Karel.  When someone calendars a event
to be "3 days later" they don't expect it to jump by an hour because it
crossed a DST boundary.  So changing it would break a bunch of people's
apps, especially mine.

-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Incorrect handling of timezones with extract
Следующее
От: Daniel Farina
Дата:
Сообщение: Re: postgres_fdw vs data formatting GUCs (was Re: [v9.3] writable foreign tables)