QUERY PLAN
Aggregate (cost=146.68..146.69 rows=1 width=8)
-> Seq Scan on tbl_contacts (cost=0.00..138.24 rows=3376 width=0)
Filter: (client_id IS NOT NULL)