Word Count for a Column
> select * from posts where id = 1;
id | title | content
----+----------+------------------------------------
1 | My Title | This is the content of my article. > select sum(array_length(regexp_split_to_array(content, '\s+'), 1)) from posts where id = 1;
sum
-----
7 Last updated