QUERY PLAN
GroupAggregate (cost=29.08..29.40 rows=10 width=100)
Group Key: product_id
-> Sort (cost=29.08..29.10 rows=10 width=12)
Sort Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..28.91 rows=10 width=12)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{1558,868,1562,2177,2262,2171,2269,2261,1372,2242,2255,2074,1234,941,1224,2073,2078,2080,1025,2086}'::integer[])))