QUERY PLAN
HashAggregate (cost=2.72..2.85 rows=5 width=196)
Group Key: product_id
-> Seq Scan on tbl_erp_inventory_products (cost=0.00..2.43 rows=13 width=21)
Filter: (product_id = ANY ('{1584,1558,1585,1586,1587,1657,1191,942,941,985,1781,1782,1783,1784,1785,1194,1195,987,984,969,1353,196,201,254,383,534,594,9,792,851,932,993,991,986,983,974,989,971,947,937,384,1161,1160,1183,1185,1186,1187,1190,1193,1201,1003,1208,289,377,157,988,590,994,992,1200,1192,1272,1338,1339,1340,1355,1354,1365,1214,1370,1367,1366,1371,1372,1373,1374,1375,1456,1457,1458}'::integer[]))