Show domain part of message-id sorted by popularity.
This commit is contained in:
parent
b1c2bb6e25
commit
aebb1a2c92
12
pg/top-message-ids.sql
Normal file
12
pg/top-message-ids.sql
Normal 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
|
||||||
|
;
|
||||||
Loading…
x
Reference in New Issue
Block a user