Re: Incorrect/confusing information about timetz

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Incorrect/confusing information about timetz
Дата
Msg-id ZPo6C2s9PDAwfKeS@momjian.us
обсуждение исходный текст
Ответ на Re: Incorrect/confusing information about timetz  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Incorrect/confusing information about timetz  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-docs
On Thu, Sep  7, 2023 at 04:41:48PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > Uh, yes to the storage part, no to the output part.  ;-)  Postgres does
> > store the timetz time zone offset, but it doesn't adust it once it is
> > stored so doesn't adjust for the session time zone:
> 
> Right, it just stores a numeric UTC offset.
> 
> > Do we want to document this?
> 
> Section 8.5.1.2. Times already says "The appropriate time zone offset
> is recorded in the time with time zone value."  Maybe that could be
> made a little more precise, say "The resolved numeric offset from UTC
> is recorded in the time with time zone value."

Yeah, there is no mention of it odd output behavior.  Here is a patch to
add that.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Incorrect/confusing information about timetz
Следующее
От: PG Doc comments form
Дата:
Сообщение: Kernel settings shmall