Re: Timestamp weirdness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Timestamp weirdness
Дата
Msg-id 17144.1122401173@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Timestamp weirdness  ("emergency.shower@gmail.com" <emergency.shower@gmail.com>)
Список pgsql-jdbc
"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> You're saying that a timestampz read from the protocol stream on the
> server side is always parsed into a TIMESTAMP WITH TIME ZONE.  When it
> is assigned to a TIMESTAMP WITHOUT TIME ZONE, there is a cast.

No, he's not saying that.  He's saying that *if* the server initially
converts to timestamptz and then timestamp, there's a problem.  It won't
ordinarily do that unless told to ... but sending the parameter
explicitly typed as timestamptz tells it to.  So part of the problem
here is that the driver is sending all Timestamp parameters explicitly
typed as timestamptz, which it does because it hasn't got any very good
basis for knowing whether the value is going to be assigned to a
timestamptz or plain timestamp column.

            regards, tom lane

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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Timestamp weirdness
Следующее
От: Dave Cramer
Дата:
Сообщение: Re: Timestamp weirdness