QUERY PLAN
Sort (cost=58.65..58.65 rows=3 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..58.62 rows=3 width=26)
Filter: (contract_id = ANY ('{3841,3840,3843}'::integer[]))