Re: BUG #3511: timeofday()::timestamp failing on Saturday when using australian_timezones = on

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #3511: timeofday()::timestamp failing on Saturday when using australian_timezones = on
Дата
Msg-id 16823.1186241308@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #3511: timeofday()::timestamp failing on Saturday when using australian_timezones = on  ("Adam" <adam@subdesigns.net>)
Список pgsql-bugs
"Adam" <adam@subdesigns.net> writes:
> Conversion to a timestamp is failing to decode a timeofday() date string
> which has both 'Sat' and a timezone 'EST', when australian_timezones is
> enabled.

Yeah, there's not a lot we can do about that.  Changing timeofday()'s
output format seems a bad idea, because the only reason that function
exists at all is for backwards compatibility.  And the fact that SAT
means something else in australian_timezones mode is unfortunate, but
there's not much to be done about it either.

As of 8.2 you can use clock_timestamp() to get the number you want
without any textual conversions.  I'd recommend that ...

            regards, tom lane

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

Предыдущее
От: "Adam"
Дата:
Сообщение: BUG #3511: timeofday()::timestamp failing on Saturday when using australian_timezones = on
Следующее
От: Decibel!
Дата:
Сообщение: Re: BUG #3499: no owner privileges in information_schema.table_privileges