| Sort (cost=1319.01..1319.03 rows=10 width=249) |
| Sort Key: (((((((COALESCE(sum((sum((sum(eipss.total_amount))))), '0'::numeric) + COALESCE(sum(t.budget), '0'::numeric)) + COALESCE(sum((sum((sum(am_1.amount))))), '0'::numeric)) - COALESCE(sum((sum((sum(eipss.actual_total_amount))))), '0'::numeric)) - COALESCE(sum(t.cost), '0'::numeric)) - COALESCE(sum((sum((sum(am_3.amount))))), '0'::numeric)) - COALESCE(sum(t.expense), '0'::numeric))) DESC, u.id |
| -> Hash Right Join (cost=1287.80..1318.84 rows=10 width=249) |
| Hash Cond: (u_1.id = u.id) |
| Filter: (((u.user_status = '1'::type_global_user_status) OR (u_1.id IS NOT NULL)) AND ((u.user_status = '1'::type_global_user_status) OR (((COALESCE(sum((sum((sum(eipss.total_amount))))), '0'::numeric) + COALESCE(sum(t.budget), '0'::numeric))) <> '0'::numeric) OR (((COALESCE(sum((sum((sum(eipss.actual_total_amount))))), '0'::numeric) + COALESCE(sum(t.cost), '0'::numeric))) <> '0'::numeric) OR ((COALESCE(sum((sum((sum(am_1.amount))))), '0'::numeric)) <> '0'::numeric) OR (((COALESCE(sum((sum((sum(am_3.amount))))), '0'::numeric) + COALESCE(sum(t.expense), '0'::numeric))) <> '0'::numeric) OR (((((COALESCE(sum((sum((sum(eipss.actual_total_amount))))), '0'::numeric) + COALESCE(sum(t.cost), '0'::numeric)) + COALESCE(sum((sum((sum(am_3.amount))))), '0'::numeric)) + COALESCE(sum(t.expense), '0'::numeric))) <> '0'::numeric) OR ((((COALESCE(sum((sum((sum(eipss.total_amount))))), '0'::numeric) + COALESCE(sum(t.budget), '0'::numeric)) + COALESCE(sum((sum((sum(am_1.amount))))), '0'::numeric))) <> '0'::numeric) OR ((((((((COALESCE(sum((sum((sum(eipss.total_amount))))), '0'::numeric) + COALESCE(sum(t.budget), '0'::numeric)) + COALESCE(sum((sum((sum(am_1.amount))))), '0'::numeric)) - COALESCE(sum((sum((sum(eipss.actual_total_amount))))), '0'::numeric)) - COALESCE(sum(t.cost), '0'::numeric)) - COALESCE(sum((sum((sum(am_3.amount))))), '0'::numeric)) - COALESCE(sum(t.expense), '0'::numeric))) <> '0'::numeric))) |
| -> GroupAggregate (cost=1278.44..1307.63 rows=144 width=228) |
| Group Key: u_1.id |
| -> Merge Left Join (cost=1278.44..1285.67 rows=144 width=144) |
| Merge Cond: (u_1.id = am_3.user_id) |
| -> Merge Left Join (cost=201.95..204.48 rows=144 width=112) |
| Merge Cond: (u_1.id = am_1.user_id) |
| -> Merge Left Join (cost=64.98..66.27 rows=144 width=80) |
| Merge Cond: (u_1.id = t_1.handler) |
| -> Sort (cost=15.05..15.41 rows=144 width=16) |
| Sort Key: u_1.id |
| -> Hash Left Join (cost=1.63..9.89 rows=144 width=16) |
| Hash Cond: (u_1.id = t.user_id) |
| -> Seq Scan on tbl_users u_1 (cost=0.00..7.44 rows=144 width=4) |
| -> Hash (cost=1.28..1.28 rows=28 width=16) |
| -> Seq Scan on tbl_erp_user_profits t (cost=0.00..1.28 rows=28 width=16) |
| -> GroupAggregate (cost=49.93..50.23 rows=12 width=68) |
| Group Key: t_1.handler |
| -> Sort (cost=49.93..49.96 rows=12 width=68) |
| Sort Key: t_1.handler |
| -> Append (cost=24.46..49.71 rows=12 width=68) |
| -> HashAggregate (cost=24.46..24.55 rows=6 width=68) |
| Group Key: t_1.handler |
| -> Hash Right Join (cost=8.30..22.45 rows=268 width=14) |
| Hash Cond: (eipss.erp_sales_outbound_id = t_1.id) |
| -> Seq Scan on tbl_erp_inventory_product_spents eipss (cost=0.00..12.65 rows=565 width=14) |
| -> Hash (cost=7.38..7.38 rows=73 width=8) |
| -> Seq Scan on tbl_erp_sales_outbounds t_1 (cost=1.07..7.38 rows=73 width=8) |
| Filter: (((NOT (hashed SubPlan 1)) OR (project_id IS NULL)) AND (status = 2)) |
| SubPlan 1 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_19.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_19.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_19 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> HashAggregate (cost=24.95..25.04 rows=6 width=68) |
| Group Key: am.user_id |
| -> Hash Join (cost=9.77..24.67 rows=16 width=19) |
| Hash Cond: (t_2.project_id = pd.project_id) |
| -> Hash Right Join (cost=7.46..22.28 rows=8 width=18) |
| Hash Cond: (eipss_1.erp_sales_outbound_id = t_2.id) |
| -> Seq Scan on tbl_erp_inventory_product_spents eipss_1 (cost=0.00..12.65 rows=565 width=14) |
| -> Hash (cost=7.43..7.43 rows=2 width=12) |
| -> Hash Join (cost=1.11..7.43 rows=2 width=12) |
| Hash Cond: (t_2.project_id = t_3.project_id) |
| -> Seq Scan on tbl_erp_sales_outbounds t_2 (cost=0.00..5.92 rows=146 width=8) |
| Filter: (status = 2) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_3.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_3.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_3 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Hash (cost=2.21..2.21 rows=8 width=13) |
| -> Hash Join (cost=1.09..2.21 rows=8 width=13) |
| Hash Cond: (am.erp_profit_distribute_id = pd.id) |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am (cost=0.00..1.08 rows=8 width=13) |
| -> Hash (cost=1.04..1.04 rows=4 width=8) |
| -> Seq Scan on tbl_erp_profit_distributes pd (cost=0.00..1.04 rows=4 width=8) |
| -> GroupAggregate (cost=136.97..137.60 rows=11 width=36) |
| Group Key: am_1.user_id |
| -> Merge Append (cost=136.97..137.41 rows=11 width=36) |
| Sort Key: am_1.user_id |
| -> GroupAggregate (cost=58.66..58.88 rows=10 width=36) |
| Group Key: am_1.user_id |
| -> Sort (cost=58.66..58.69 rows=13 width=9) |
| Sort Key: am_1.user_id |
| -> Nested Loop Left Join (cost=4.38..58.42 rows=13 width=9) |
| Filter: (((NOT (hashed SubPlan 2)) OR (t_4.sales_contract_id IS NULL)) AND ((NOT (hashed SubPlan 3)) OR (t_4.sales_contract_id IS NULL))) |
| -> Hash Join (cost=1.95..3.13 rows=13 width=13) |
| Hash Cond: (am_1.erp_other_income_ticket_id = t_4.id) |
| -> Seq Scan on tbl_erp_other_income_ticket_handlers am_1 (cost=0.00..1.14 rows=14 width=13) |
| -> Hash (cost=1.50..1.50 rows=36 width=8) |
| -> Seq Scan on tbl_erp_other_income_tickets t_4 (cost=0.00..1.50 rows=36 width=8) |
| Filter: (status = 2) |
| -> Index Scan using tbl_sales_contracts_pkey on tbl_sales_contracts sc (cost=0.28..4.07 rows=1 width=8) |
| Index Cond: (id = t_4.sales_contract_id) |
| SubPlan 2 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_20.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_20.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_20 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| SubPlan 3 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_21.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_21.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_21 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> GroupAggregate (cost=78.30..78.33 rows=1 width=36) |
| Group Key: am_2.user_id |
| -> Sort (cost=78.30..78.30 rows=1 width=15) |
| Sort Key: am_2.user_id |
| -> Nested Loop (cost=1.11..78.29 rows=1 width=15) |
| Join Filter: (sc_1.id = t_5.sales_contract_id) |
| -> Nested Loop (cost=1.11..76.34 rows=1 width=13) |
| Join Filter: (pd_1.id = am_2.erp_profit_distribute_id) |
| -> Nested Loop (cost=1.11..75.16 rows=1 width=8) |
| Join Filter: (sc_1.from_project = pd_1.project_id) |
| -> Seq Scan on tbl_erp_profit_distributes pd_1 (cost=0.00..1.04 rows=4 width=8) |
| -> Materialize (cost=1.11..74.00 rows=2 width=12) |
| -> Hash Join (cost=1.11..73.99 rows=2 width=12) |
| Hash Cond: (sc_1.from_project = t_6.project_id) |
| -> Seq Scan on tbl_sales_contracts sc_1 (cost=0.00..68.32 rows=1732 width=8) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_6.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_6.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_6 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am_2 (cost=0.00..1.08 rows=8 width=13) |
| -> Seq Scan on tbl_erp_other_income_tickets t_5 (cost=0.00..1.50 rows=36 width=10) |
| Filter: (status = 2) |
| -> GroupAggregate (cost=1076.49..1078.53 rows=102 width=36) |
| Group Key: am_3.user_id |
| -> Sort (cost=1076.49..1076.75 rows=102 width=36) |
| Sort Key: am_3.user_id |
| -> Append (cost=572.44..1073.09 rows=102 width=36) |
| -> HashAggregate (cost=572.44..573.19 rows=60 width=36) |
| Group Key: am_3.user_id |
| -> Hash Left Join (cost=408.39..567.61 rows=965 width=9) |
| Hash Cond: (t_7.sales_contract_id = sc_2.id) |
| Filter: ((NOT (hashed SubPlan 4)) OR (t_7.sales_contract_id IS NULL)) |
| -> Hash Join (cost=317.35..473.68 rows=1099 width=13) |
| Hash Cond: (am_3.erp_cash_cost_ticket_id = t_7.id) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_handlers am_3 (cost=0.00..134.84 rows=8184 width=13) |
| -> Hash (cost=303.12..303.12 rows=1138 width=8) |
| -> Seq Scan on tbl_erp_cash_cost_tickets t_7 (cost=0.00..303.12 rows=1138 width=8) |
| Filter: (is_payment_settle AND (created_at >= '2025-08-08 14:34:58+08'::timestamp with time zone) AND (status = 2)) |
| -> Hash (cost=68.32..68.32 rows=1732 width=8) |
| -> Seq Scan on tbl_sales_contracts sc_2 (cost=0.00..68.32 rows=1732 width=8) |
| SubPlan 4 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_22.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_22.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_22 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> GroupAggregate (cost=287.17..287.19 rows=1 width=36) |
| Group Key: am_4.user_id |
| -> Sort (cost=287.17..287.17 rows=1 width=14) |
| Sort Key: am_4.user_id |
| -> Hash Join (cost=92.42..287.16 rows=1 width=14) |
| Hash Cond: (sc_3.from_project = t_9.project_id) |
| -> Merge Join (cost=91.30..286.03 rows=4 width=22) |
| Merge Cond: (pd_2.id = am_4.erp_profit_distribute_id) |
| -> Nested Loop (cost=90.10..479.40 rows=2 width=17) |
| Join Filter: (sc_3.from_project = pd_2.project_id) |
| -> Index Scan using tbl_erp_profit_distributes_pkey on tbl_erp_profit_distributes pd_2 (cost=0.13..12.19 rows=4 width=8) |
| -> Materialize (cost=89.97..401.77 rows=1138 width=9) |
| -> Hash Join (cost=89.97..396.08 rows=1138 width=9) |
| Hash Cond: (t_8.sales_contract_id = sc_3.id) |
| -> Seq Scan on tbl_erp_cash_cost_tickets t_8 (cost=0.00..303.12 rows=1138 width=9) |
| Filter: (is_payment_settle AND (created_at >= '2025-08-08 14:34:58+08'::timestamp with time zone) AND (status = 2)) |
| -> Hash (cost=68.32..68.32 rows=1732 width=8) |
| -> Seq Scan on tbl_sales_contracts sc_3 (cost=0.00..68.32 rows=1732 width=8) |
| -> Sort (cost=1.20..1.22 rows=8 width=13) |
| Sort Key: am_4.erp_profit_distribute_id |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am_4 (cost=0.00..1.08 rows=8 width=13) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_9.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_9.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_9 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> HashAggregate (cost=6.31..6.46 rows=12 width=36) |
| Group Key: am_5.user_id |
| -> Hash Join (cost=4.38..6.14 rows=34 width=9) |
| Hash Cond: (am_5.erp_cost_ticket_id = t_10.id) |
| -> Seq Scan on tbl_erp_cost_ticket_handlers am_5 (cost=0.00..1.59 rows=59 width=13) |
| -> Hash (cost=3.96..3.96 rows=34 width=4) |
| -> Seq Scan on tbl_erp_cost_tickets t_10 (cost=1.07..3.96 rows=34 width=4) |
| Filter: (((NOT (hashed SubPlan 5)) OR (project_id IS NULL)) AND (status = 2)) |
| SubPlan 5 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_23.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_23.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_23 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> GroupAggregate (cost=6.38..6.48 rows=4 width=36) |
| Group Key: am_6.user_id |
| -> Sort (cost=6.38..6.39 rows=4 width=14) |
| Sort Key: am_6.user_id |
| -> Hash Join (cost=3.43..6.34 rows=4 width=14) |
| Hash Cond: (t_11.project_id = pd_3.project_id) |
| -> Hash Join (cost=1.11..4.00 rows=2 width=13) |
| Hash Cond: (t_11.project_id = t_12.project_id) |
| -> Seq Scan on tbl_erp_cost_tickets t_11 (cost=0.00..2.74 rows=52 width=9) |
| Filter: (status = 2) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_12.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_12.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_12 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Hash (cost=2.21..2.21 rows=8 width=13) |
| -> Hash Join (cost=1.09..2.21 rows=8 width=13) |
| Hash Cond: (am_6.erp_profit_distribute_id = pd_3.id) |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am_6 (cost=0.00..1.08 rows=8 width=13) |
| -> Hash (cost=1.04..1.04 rows=4 width=8) |
| -> Seq Scan on tbl_erp_profit_distributes pd_3 (cost=0.00..1.04 rows=4 width=8) |
| -> HashAggregate (cost=72.38..72.51 rows=11 width=36) |
| Group Key: am_7.user_id |
| -> Hash Join (cost=3.59..72.12 rows=50 width=9) |
| Hash Cond: (t_13.id = am_7.erp_cost_convert_ticket_id) |
| -> Nested Loop Left Join (cost=1.35..69.29 rows=10 width=4) |
| Filter: ((NOT (hashed SubPlan 6)) OR (t_13.sales_contract_id IS NULL)) |
| -> Seq Scan on tbl_erp_cost_convert_tickets t_13 (cost=0.00..1.14 rows=10 width=8) |
| Filter: (status = 2) |
| -> Index Scan using tbl_sales_contracts_pkey on tbl_sales_contracts sc_4 (cost=0.28..6.69 rows=1 width=8) |
| Index Cond: (id = t_13.sales_contract_id) |
| SubPlan 6 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_24.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_24.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_24 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Hash (cost=1.55..1.55 rows=55 width=13) |
| -> Seq Scan on tbl_erp_cost_convert_ticket_handlers am_7 (cost=0.00..1.55 rows=55 width=13) |
| -> GroupAggregate (cost=77.61..77.64 rows=1 width=36) |
| Group Key: am_8.user_id |
| -> Sort (cost=77.61..77.62 rows=1 width=15) |
| Sort Key: am_8.user_id |
| -> Nested Loop (cost=1.11..77.60 rows=1 width=15) |
| Join Filter: (sc_5.id = t_14.sales_contract_id) |
| -> Nested Loop (cost=1.11..76.34 rows=1 width=13) |
| Join Filter: (pd_4.id = am_8.erp_profit_distribute_id) |
| -> Nested Loop (cost=1.11..75.16 rows=1 width=8) |
| Join Filter: (sc_5.from_project = pd_4.project_id) |
| -> Seq Scan on tbl_erp_profit_distributes pd_4 (cost=0.00..1.04 rows=4 width=8) |
| -> Materialize (cost=1.11..74.00 rows=2 width=12) |
| -> Hash Join (cost=1.11..73.99 rows=2 width=12) |
| Hash Cond: (sc_5.from_project = t_15.project_id) |
| -> Seq Scan on tbl_sales_contracts sc_5 (cost=0.00..68.32 rows=1732 width=8) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_15.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_15.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_15 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am_8 (cost=0.00..1.08 rows=8 width=13) |
| -> Seq Scan on tbl_erp_cost_convert_tickets t_14 (cost=0.00..1.14 rows=10 width=10) |
| Filter: (status = 2) |
| -> HashAggregate (cost=24.82..24.91 rows=7 width=36) |
| Group Key: t_16.handler |
| -> Hash Right Join (cost=7.30..21.44 rows=451 width=14) |
| Hash Cond: (eipss_2.erp_sales_gift_id = t_16.id) |
| -> Seq Scan on tbl_erp_inventory_product_spents eipss_2 (cost=0.00..12.65 rows=565 width=14) |
| -> Hash (cost=6.01..6.01 rows=103 width=8) |
| -> Seq Scan on tbl_erp_sales_gifts t_16 (cost=1.07..6.01 rows=103 width=8) |
| Filter: (((NOT (hashed SubPlan 7)) OR (project_id IS NULL)) AND (status = 2)) |
| SubPlan 7 |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_25.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_25.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_25 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> HashAggregate (cost=23.61..23.68 rows=6 width=36) |
| Group Key: am_9.user_id |
| -> Hash Right Join (cost=8.49..23.32 rows=23 width=19) |
| Hash Cond: (eipss_3.erp_sales_gift_id = t_17.id) |
| -> Seq Scan on tbl_erp_inventory_product_spents eipss_3 (cost=0.00..12.65 rows=565 width=14) |
| -> Hash (cost=8.43..8.43 rows=5 width=13) |
| -> Hash Join (cost=3.43..8.43 rows=5 width=13) |
| Hash Cond: (t_17.project_id = pd_5.project_id) |
| -> Hash Join (cost=1.11..6.07 rows=4 width=12) |
| Hash Cond: (t_17.project_id = t_18.project_id) |
| -> Seq Scan on tbl_erp_sales_gifts t_17 (cost=0.00..4.61 rows=122 width=8) |
| Filter: (status = 2) |
| -> Hash (cost=1.09..1.09 rows=2 width=4) |
| -> Group (cost=1.06..1.07 rows=2 width=4) |
| Group Key: t_18.project_id |
| -> Sort (cost=1.06..1.06 rows=2 width=4) |
| Sort Key: t_18.project_id |
| -> Seq Scan on tbl_erp_profit_distributes t_18 (cost=0.00..1.05 rows=2 width=4) |
| Filter: ((project_id IS NOT NULL) AND (status = 2)) |
| -> Hash (cost=2.21..2.21 rows=8 width=13) |
| -> Hash Join (cost=1.09..2.21 rows=8 width=13) |
| Hash Cond: (am_9.erp_profit_distribute_id = pd_5.id) |
| -> Seq Scan on tbl_erp_profit_distribute_pcts am_9 (cost=0.00..1.08 rows=8 width=13) |
| -> Hash (cost=1.04..1.04 rows=4 width=8) |
| -> Seq Scan on tbl_erp_profit_distributes pd_5 (cost=0.00..1.04 rows=4 width=8) |
| -> Hash (cost=9.24..9.24 rows=10 width=29) |
| -> Seq Scan on tbl_users u (cost=0.00..9.24 rows=10 width=29) |
| Filter: (id = ANY ('{5332,1001,5087,5300,5311,5295,1013,5476,1004,1005}'::integer[])) |