QUERY PLAN
HashAggregate (cost=1.33..1.35 rows=1 width=168)
Group Key: product_id, erp_store_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..1.21 rows=6 width=26)
Filter: (product_id = ANY ('{947,2067,2068,2069,2066,2065,2064,2063,2062,2061,2060,2057,2058,2059,2056,2055,2054,2053,2052,2051}'::integer[]))