QUERY PLAN
Aggregate (cost=18.41..18.42 rows=1 width=8)
-> Sort (cost=18.38..18.39 rows=2 width=588)
Sort Key: cd.created_at DESC
-> Group (cost=18.36..18.37 rows=2 width=588)
Group Key: cd.id
-> Sort (cost=18.36..18.37 rows=2 width=12)
Sort Key: cd.id
-> Seq Scan on tbl_client_documents cd (cost=0.00..18.35 rows=2 width=12)
Filter: (client_id = 3332)