QUERY PLAN
Sort (cost=88.39..88.44 rows=19 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..87.99 rows=19 width=26)
Filter: (contract_id = ANY ('{4444,4241,3915,4271,4312,4360,4035,4168,4223,3645,3738,3709,3783,4026,3998,3844}'::integer[]))