Agreguj kolumnę hstore w PostreSQL

Mam taki stół:

                         Table "public.statistics"

id         | integer                | not null default nextval('statistics_id_seq'::regclass)
goals      | hstore                 | 

przedmiotów:

|id    |goals                  |
|30059 |"3"=>"123"             |
|27333 |"3"=>"200", "5"=>"10"  |

Co muszę zrobić, aby zagregować wszystkie wartości kluczem w hash?

Chcę uzyskać taki wynik:

select sum(goals) from statistics

powrót

|goals                 |
|"3"=>"323", "5"=>"10" |

questionAnswers(2)

yourAnswerToTheQuestion