QUERY PLAN
Sort (cost=88.84..88.89 rows=21 width=29)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..88.38 rows=21 width=29)
Filter: (contract_id = ANY ('{4253,4252,4249,4248,4243,4241,4235,4233,4227,4226,4224,4221,4213,4204,4223,4211,4207,4212,4200,4199}'::integer[]))