Thread: ERROR: "TZ"/"tz" not supported

ERROR: "TZ"/"tz" not supported

From
Sergey Levchenko
Date:
When I execute query, I've got error message.

test=> SELECT to_timestamp('00:00:05.601 SAMST Tue Jun 28 2005',
'HH24:MI:SS.MS TZ Dy Mon DD YYYY');
ERROR:  "TZ"/"tz" not supported

How can I convert '00:00:05.601 SAMST Tue Jun 28 2005'  (varchar type)
to timestamp with time zone?

Re: ERROR: "TZ"/"tz" not supported

From
Tom Lane
Date:
Sergey Levchenko <sector119@gmail.com> writes:
> How can I convert '00:00:05.601 SAMST Tue Jun 28 2005'  (varchar type)
> to timestamp with time zone?

Just casting it would work, except that SAMST is not one of the time
zone abbreviations known to Postgres.  If you're desperate you could
add an entry to the table in datetime.c.  (Someday we really need to
make that list configurable instead of hard-wired.)

            regards, tom lane