QUERY PLAN
GroupAggregate (cost=27.70..27.88 rows=8 width=40)
Group Key: product_id, erp_store_id
-> Sort (cost=27.70..27.72 rows=8 width=11)
Sort Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..27.58 rows=8 width=11)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{2261,2177,2171,2269,2262,2242,1485,1483,1672,2255,1528,1562,1584,1504,2266,2263,2265,2268}'::integer[])))