QUERY PLAN
HashAggregate (cost=29.25..30.95 rows=34 width=520)
Group Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..27.59 rows=35 width=92)
Filter: (product_id = ANY ('{1562,994,1339,2233,1340,1584,2262,2171,2266,2268,2270,2091,2090,1241,1528,2242,2263,2264,2255,2074}'::integer[]))