QUERY PLAN
Sort (cost=61.41..61.42 rows=6 width=26)
Sort Key: id
-> Seq Scan on tbl_sales_contract_invoices (cost=0.00..61.33 rows=6 width=26)
Filter: (contract_id = ANY ('{4363,4364,4359,4377,4360,4366}'::integer[]))