QUERY PLAN
Sort (cost=121.14..121.20 rows=21 width=22)
Sort Key: id
-> Seq Scan on tbl_purchase_invoice_amounts (cost=0.00..120.68 rows=21 width=22)
Filter: (purchase_invoice_id = ANY ('{2297,2308,2323,2342,2369,2370,2414,2415,2420,2434,2449,2527,2544,2550,2567,2570,2615,2672,2752}'::integer[]))