QUERY PLAN
Sort (cost=203.55..203.68 rows=49 width=22)
Sort Key: id
-> Seq Scan on tbl_purchase_invoice_amounts (cost=0.00..202.18 rows=49 width=22)
Filter: (purchase_invoice_id = ANY ('{2675,2676,2677,2678,2681,2682,2683,2684,2685,2686,2687,2688,2689,2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2701,2702,2703,2704,2705,2706,2707,2708,2709,2710,2711,2712,2713,2714,2722,2725,2727,2728,2730,2734,2737,2738,2739,2741,2750}'::integer[]))