QUERY PLAN
Result (cost=2.76..2.77 rows=1 width=1)
InitPlan 1 (returns $0)
-> Hash Join (cost=1.21..2.76 rows=1 width=0)
Hash Cond: (sgr.sales_goal_id = sg.id)
-> Seq Scan on tbl_sales_goal_rels sgr (cost=0.00..1.54 rows=5 width=4)
Filter: (user_id = 1005)
-> Hash (cost=1.20..1.20 rows=1 width=4)
-> Seq Scan on tbl_sales_goals sg (cost=0.00..1.20 rows=1 width=4)
Filter: ((id <> 15) AND (goal_year = '2026'::smallint))