QUERY PLAN
Aggregate (cost=143.90..143.91 rows=1 width=8)
-> Seq Scan on tbl_contacts (cost=0.00..135.58 rows=3329 width=0)
Filter: (client_id IS NOT NULL)