QUERY PLAN
Sort (cost=17.59..17.61 rows=5 width=29)
Sort Key: id
-> Bitmap Heap Scan on tbl_sales_contract_invoices (cost=4.32..17.53 rows=5 width=29)
Recheck Cond: (contract_id = 2148)
-> Bitmap Index Scan on tbl_sales_contract_invoices_contract_id_idx (cost=0.00..4.32 rows=5 width=0)
Index Cond: (contract_id = 2148)