Simpler question about timestamp

Поиск
Список
Период
Сортировка
От Dennis Gearon
Тема Simpler question about timestamp
Дата
Msg-id 3E8DD0F1.20807@cvc.net
обсуждение исходный текст
Ответы Re: Simpler question about timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
According to the manual, all datetimes are stored in UTC/GMT values, not matter
what your time zone is.

Please correct my limited understanding below:

timestamp
    any time zone imput is ignored
    time zone demarcation in output is optional
    timestamp value is adjusted to local time zone on output
    CAN BE USED in functional indexes because no timezone change.

timestamptz
    time zone imput is required
    time zone demarcation in output is optional
    timestamp value is adjusted to local time zone on output
    CANNOT BE USED in functional indexes because no timezone change.

Anything I miss? Why use one or the other?


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: before and after triggers
Следующее
От: Tom Lane
Дата:
Сообщение: Re: before and after triggers