select sum(hashtext(my_table::text)) from my_table;
The answer with the most votes doesn't work for me, as my table is too big, and the server would raise the error:
ERROR: array size exceeds the maximum allowed