QUERY PLAN
GroupAggregate (cost=18.30..18.35 rows=2 width=40)
Group Key: product_id, erp_store_id
-> Sort (cost=18.30..18.31 rows=2 width=11)
Sort Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..18.29 rows=2 width=11)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{2261,2266,2263,2265}'::integer[])))