Advertisement
Guest User

Untitled

a guest
Jun 25th, 2023
503
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. postgres=# SELECT COUNT(DISTINCT s.id)
  2. postgres-# FROM submissions s
  3. postgres-# JOIN comments c ON s.id = c.link_id
  4. postgres-# WHERE c.body ~* '\y(list of words from https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words/blob/master/en)\y'
  5. postgres-$ OR s.self_text ~* '\y(same list as above)\y';
  6. count
  7. --------
  8. 254682
  9. (1 row)
  10.  
  11. postgres=# select count(DISTINCT s.id) from submissions s;
  12. count
  13. --------
  14. 850977
  15. (1 row)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement