Re: BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type
Дата
Msg-id 25029.1358187212@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type  (dotbrat@gmail.com)
Ответы Re: BUG #7804: timeofday() output string is not compatible with "timestamp with time zone" data type  (Руслан Измайлов <dotbrat@gmail.com>)
Список pgsql-bugs
dotbrat@gmail.com writes:
> SET TIME ZONE 'Europe/Minsk';
> select timeofday()::timestamp with time zone;
> ERROR: invalid input syntax for type timestamp with time zone: "Mon Jan 14
> 08:18:20.333915 2013 FET"

The issue seems to be that the recently-invented abbreviation FET
isn't anywhere in our default list of timezone abbreviations.

That probably should be fixed, but in the meantime, you really should be
aware that timeofday() is deprecated, and there's no reason at all to
use it in the above manner anyway.  now() or current_timestamp are
simpler and much faster.

            regards, tom lane

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #7807: "sign" function returns double
Следующее
От: joe@tanga.com
Дата:
Сообщение: BUG #7808: unnest doesn't handle nulls in array of composite types correctly