QUERY PLAN
Sort (cost=105.46..105.74 rows=112 width=129)
Sort Key: id DESC
-> Seq Scan on tbl_inventory_products (cost=0.00..101.65 rows=112 width=129)
Filter: (purchase_invoice_id = ANY ('{2389,2388,2387,2386,2375,2333,2332,2314,2293,2276,2272,2233,2201,2183,2175,2132,2106,2094,2067,2050}'::integer[]))