QUERY PLAN
HashAggregate (cost=29.80..31.43 rows=31 width=552)
Group Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..28.25 rows=31 width=68)
Filter: (product_id = ANY ('{1373,1562,851,1340,2230,1973,994,2233,1339,2262,1584,2266,2268,2270,1241,2090,1528,2242,2263,2264}'::integer[]))