Escribe una función usando pl/perlu y usa este módulo https://metacpan.org/pod/HTML::Entities
Por supuesto, debe tener Perl instalado y pl/Perl disponible.
CREATE EXTENSION plperlu;
CREATE FUNCTION decode_html_entities(text) RETURNS TEXT AS $$
use HTML::Entities;
return decode_entities($_[0]);
$$ LANGUAGE plperlu;
select decode_html_entities('aaabbb&.... asasdasdasd …');
decode_html_entities
---------------------------
aaabbb&.... asasdasdasd …
(1 row)