I have a table with a column that contains a timestamp with the format YYYY-MM-DD HH:MM:SS .
I need to get only the month. I am well aware that MONTHNAME exists, but it seems to me that it only works if the timestamp includes the timezone.
In the current situation, I'm trying to obtain it using the following:
SELECT
nameofthecolum, date_part (month, nameofthecolum),
FROM
tablename
And I get the error:
ERROR: column "month" does not exist Position: 32