Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
Дата
Msg-id 3416600.1730987836@sss.pgh.pa.us
обсуждение исходный текст
Ответ на TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'  (Aleksander Alekseev <aleksander@timescale.com>)
Ответы Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
Список pgsql-bugs
Aleksander Alekseev <aleksander@timescale.com> writes:
> =# set datestyle to 'Postgres';
> SET
> =# SELECT '1000-01-01'::timestamptz::text::timestamptz;
> ERROR:  invalid input syntax for type timestamp with time zone: "Wed
> Jan 01 00:00:00 1000 LMT"

> If I understand correctly, text->timestamptz doesn't understand the
> 'LMT' timezone.

So it seems.  In a quick experiment, it seemed like just treating LMT
as a noise word on input might be enough, but I don't have time today
to poke at it further.

            regards, tom lane



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