QUERY PLAN
Sort (cost=106.88..106.96 rows=31 width=16)
Sort Key: id
-> Seq Scan on tbl_purchase_client_rels (cost=0.00..106.11 rows=31 width=16)
Filter: (contract_id = ANY ('{4122,4103,4056,3936,3940,3927,3928,3863,3862,3804,3769,3726,3727,3704,3582,3526,3503,3494,3499,3442,3424,3405,3365,3367,3319,3320,3253,3254,3252,3251,3236}'::integer[]))