La función de la función (texto) no existe Postgres
SELECT SUM(text::int)
FROM yourTable;
Homemadesteam58
SELECT SUM(text::int)
FROM yourTable;