QUERY PLAN
GroupAggregate (cost=27.26..27.49 rows=7 width=100)
Group Key: product_id
-> Sort (cost=27.26..27.28 rows=7 width=12)
Sort Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..27.16 rows=7 width=12)
Filter: ((inventory > '0'::numeric) AND (product_id = ANY ('{2171,2269,2262,1584,1562,2177,2261,1372,2242,2255,2074,1234,941,1224,2078,2073,2080,1025,2086,2085}'::integer[])))