Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres' - Mailing list pgsql-bugs

From Tom Lane
Subject Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
Date
Msg-id 3416600.1730987836@sss.pgh.pa.us
Whole thread Raw
In response to TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'  (Aleksander Alekseev <aleksander@timescale.com>)
Responses Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: BUG #18694: DISCARD ALL does not reset execution counters for plpgsql functions
Next
From: Aleksander Alekseev
Date:
Subject: Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'