Re: Comment on timezone and interval types

Поиск
Список
Период
Сортировка
От Stuart Bishop
Тема Re: Comment on timezone and interval types
Дата
Msg-id 4181EFAC.8010104@stuartbishop.net
обсуждение исходный текст
Ответ на Comment on timezone and interval types  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: Comment on timezone and interval types
Re: Comment on timezone and interval types
Список pgsql-general
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruno Wolff III wrote:
| Recently there has been some discussion about attaching a timezone to
| a timestamp and some other discussion about including a 'day' part
| in the interval type. These two features impact each other, since
| if you add a 'day' to a timestamp the result can depend on what timezone
| the timestamp is supposed to be in. It probably makes more sense to use
| a timezone associated with the timestamp than say the timezone GUC or the
| fixed timezone UTC.

If you add a 'day' to a timestamp, it should be identical to adding 24
hours. Any other interpretation leads to all sorts of wierd ambiguities.
For example, what is '2am April 3rd 2004 US/Eastern + 1 day'? 2am on
April 4th 2004 didn't exist in that timezone because the clocks were put
forward and that hour skipped. If you round up to the nearest existant
time, you then have the issue that '2am April 3rd + 1 day == 3am Aril
3rd + 1 day'.

- --
Stuart Bishop <stuart@stuartbishop.net>
http://www.stuartbishop.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBge+sAfqZj7rGN0oRAgInAJsEuYkxX6/jsaszquhjEX/PH3nXvACfVBW9
Z3sfU5XGgxSOI77vuOOOzKA=
=euY6
-----END PGP SIGNATURE-----

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

Предыдущее
От: Stefan Sturm
Дата:
Сообщение: Error with 8.0.0 Beta4
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Question Regarding Locks