postgres get all year from date in table code example Example: get year from date postgres SELECT EXTRACT(YEAR FROM column_date);