Show domain part of message-id sorted by popularity.

This commit is contained in:
Bill Thiede 2014-04-09 19:41:21 -07:00
parent b1c2bb6e25
commit aebb1a2c92

12
pg/top-message-ids.sql Normal file
View File

@ -0,0 +1,12 @@
SELECT
COUNT(value),
LOWER(COALESCE(SUBSTRING(value from '.*@(.*)>'), value)) AS id
FROM
header
WHERE
name = 'Message-Id'
GROUP BY
id
ORDER BY
count DESC
;