QUERY PLAN
Aggregate (cost=140.63..140.64 rows=1 width=8)
-> Seq Scan on tbl_contacts (cost=0.00..132.49 rows=3255 width=0)
Filter: (client_id IS NOT NULL)