QUERY PLAN
HashAggregate (cost=1.71..1.76 rows=5 width=12)
Group Key: sales_goal_id
-> Seq Scan on tbl_sales_goal_rels (cost=0.00..1.68 rows=5 width=4)
Filter: (sales_goal_id = ANY ('{4,5,7,6,8}'::integer[]))