QUERY PLAN
Update on tbl_client_sales_rep_rels (cost=0.00..689.10 rows=58 width=34)
-> Seq Scan on tbl_client_sales_rep_rels (cost=0.00..689.10 rows=58 width=34)
Filter: ((end_at IS NULL) AND (client_id = ANY ('{146,982,1032,1039,1077,1094,1095,1098,1175,1178,1661,1933,1956,2044,2045,2046,2115,2117,2207,2219,2486,2499,2500,2511,2519,2520,2536,2538,2539,2540,2545,2551,2553,2582,2589,2616,2718,2719,2798,2800,2803,2836,2838,2845,3009,3081,3278,3286,3296,3301,3304,3311,3327,3334,3344,3364,3372,3389}'::integer[])))