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 ('{2177,2265,2261,969,867,2232,1558,868,870,2231,989,1372,2269,1025,2267,1562,2262,2171,2242,2255}'::integer[])))