Re: Why data of timestamptz does not store value of timezone passed to it?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Why data of timestamptz does not store value of timezone passed to it?
Дата
Msg-id 1409250413.67542.YahooMailNeo@web122306.mail.ne1.yahoo.com
обсуждение исходный текст
Ответ на Re: Why data of timestamptz does not store value of timezone passed to it?  (Steve Crawford <scrawford@pinpointresearch.com>)
Ответы Re: Why data of timestamptz does not store value of timezone passed to it?  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Why data of timestamptz does not store value of timezone passed to it?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Steve Crawford <scrawford@pinpointresearch.com> wrote:

> I have always considered "timestamp with time zone" to be a bad
> description of that data type but it appears to be a carryover
> from the specs. It is really a "point in time"

I agree.  While what timestamptz implements is a very useful data
type, I think it was a very unfortunate decision to implement that
for the standard type name, instead of something more consistent
with the spec.  It seems very unlikely to change, though, because
so much existing production code would break.  :-(

Understandably, people do tend to expect that saving something into
a column defined as TIMESTAMP WITH TIME ZONE will save a time zone
with the timestamp, and in PostgreSQL it does not.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: postgresql latency & bgwriter not doing its job
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Why data of timestamptz does not store value of timezone passed to it?