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 Martijn van Oosterhout <kleptog@svana.org>
Re: Comment on timezone and interval types Thomas Hallgren <thhal@mailblocks.com>
Re: Comment on timezone and interval types "Marco Ferretti" <marco.ferretti@jrc.it>
Re: Comment on timezone and interval types Stuart Bishop <stuart@stuartbishop.net>
Re: Comment on timezone and interval types Tom Lane <tgl@sss.pgh.pa.us>
Re: Comment on timezone and interval types Guy Fraser <guy@incentre.net>
Re: Comment on timezone and interval types Bruno Wolff III <bruno@wolff.to>
Re: Comment on timezone and interval types Stuart Bishop <stuart@stuartbishop.net>
Re: Comment on timezone and interval types Tom Lane <tgl@sss.pgh.pa.us>
Re: Comment on timezone and interval types Michael Glaesemann <grzm@myrealbox.com>
-----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 
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
FAQ