I have a column of type TIMESTAMP, I'd like to query all records from 2011. If it were text I could use a partial such as:
WHERE text ~ '2011'
There must be a simple way to pull the year part out of a timestamp format. Thanks in advance.