QUERY PLAN
HashAggregate (cost=38.17..40.29 rows=94 width=168)
Group Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..36.21 rows=98 width=24)
Filter: (product_id = ANY ('{1558,868,1562,2177,2262,2171,2269,2261,1372,2242,2255,2074,1234,941,1224,2073,2078,2080,1025,2086,2085,39,672,2083,2084,1238,2077,2076,1231,2075,1245,1246,2072}'::integer[]))