I have a table where the timestamp
is stored as a varchar
. I need to convert it to timestamp
with timezone
but every time I get "Invalid Operation" error.
The format of the field is:
2017-10-30 10:12:34:154 +1100
I tried the following:
'2017-10-30 10:12:34:154 +1100'::timestamptz
'2017-10-30 10:12:34:154 +1100'::timestamp
to_timestamp('2017-10-30 10:12:34:154 +1100')
to_date('2017-10-30 10:12:34:154 +1100')
to_timestamp(to_char('2017-10-30 10:12:34:154 +1100'))
All gave an error like this:
[Amazon](500310) Invalid operation: function to_timestamp(character varying) does not exist;
Can somebody please help?