QUERY PLAN
HashAggregate (cost=26.62..27.97 rows=60 width=168)
Group Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..25.40 rows=61 width=24)
Filter: (product_id = ANY ('{2171,2267,2265,2266,2269,2268,2262,1558,1584,1562,2177,2261,2270,1372,2090,2091,1241,1528,2242,2263}'::integer[]))