QUERY PLAN
GroupAggregate (cost=0.00..1.17 rows=1 width=100)
Group Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..1.09 rows=5 width=16)
Filter: ((inventory > '0'::numeric) AND (product_id = 947))