I'm trying to convert and epoch to a string on PostgreSQL and I get the following error:
ERROR: date/time field value out of range: "1658792421"
The query is the following:
SELECT to_timestamp('1658792421', 'DD-MM-YYYY');
Not really sure why this happens.
I'm using PostgreSQL 13.
Thanks