QUERY PLAN
Sort (cost=78.46..78.51 rows=20 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..78.03 rows=20 width=16)
Filter: (contract_id = ANY ('{4063,4038,4031,4017,4004,3893,3845,3807,3784,3780,3722,3690,3653,3631,3561,3515,3499,3424,3411,3480}'::integer[]))