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