Sql Extract Year From Date Postgres