Query with error - DOW FROM timestamp

From: "Victor Sterpu" <victor(at)caido(dot)ro>
To: "PostgreSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Query with error - DOW FROM timestamp
Date: 2014-05-23 09:32:29
Message-ID: em73716bc5-566b-4ff4-9085-6c4a65918d1e@victor-pc
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

When I run the query from down I receive an error.
How can I write this query to receive the day ot the week.
SELECT EXTRACT(DOW FROM timestamp TO_TIMESTAMP('14-10-2011',
'DD-MM-YYYY'));

Thank you

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2014-05-23 09:51:30 Re: Query with error - DOW FROM timestamp
Previous Message basti 2014-05-23 09:11:54 archiving transaction log file failed too many times, will try again later