QUERY PLAN
Sort (cost=13.18..13.19 rows=3 width=26)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=4.30..13.16 rows=3 width=26)
Recheck Cond: (contract_id = 1186)
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..4.30 rows=3 width=0)
Index Cond: (contract_id = 1186)