QUERY PLAN
GroupAggregate (cost=29.10..29.46 rows=11 width=100)
Group Key: product_id
-> Sort (cost=29.10..29.13 rows=11 width=12)
Sort Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..28.91 rows=11 width=12)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{1372,2261,2269,868,2232,870,1025,2267,2231,867,969,989,1558,1562,2177,2262,2171,2242,2255,2074}'::integer[])))