QUERY PLAN
Aggregate (cost=1904.75..1904.76 rows=1 width=8)
-> Append (cost=59.11..1891.53 rows=5288 width=0)
-> Subquery Scan on sub (cost=59.11..62.49 rows=169 width=0)
-> HashAggregate (cost=59.11..60.80 rows=169 width=305)
Group Key: r.id, rvr.status, rsvr.status
-> Hash Left Join (cost=44.38..57.85 rows=169 width=12)
Hash Cond: (r.id = rsvr.erp_purchase_inbound_id)
-> Hash Left Join (cost=22.19..34.99 rows=169 width=8)
Hash Cond: (r.id = rvr.erp_purchase_inbound_id)
-> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..12.12 rows=169 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_inbound_stop_verify_rels rsvr (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 2" (cost=68.44..68.58 rows=6 width=0)
-> Group (cost=68.44..68.52 rows=6 width=309)
Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status
-> Sort (cost=68.44..68.46 rows=6 width=16)
Sort Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status
-> Nested Loop Left Join (cost=0.00..68.36 rows=6 width=16)
Join Filter: (rcvr.erp_purchase_order_id = r_1.id)
-> Nested Loop Left Join (cost=0.00..45.85 rows=5 width=12)
Join Filter: (rsvr_1.erp_purchase_order_id = r_1.id)
-> Nested Loop Left Join (cost=0.00..23.41 rows=4 width=8)
Join Filter: (rvr_1.erp_purchase_order_id = r_1.id)
-> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..1.05 rows=3 width=4)
Filter: (status <> 0)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_order_stop_verify_rels rsvr_1 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Materialize (cost=0.00..22.15 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_order_cancel_verify_rels rcvr (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 3" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_2.id, rvr_2.status, rsvr_2.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_2.id = rsvr_2.erp_purchase_return_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_2.id = rvr_2.erp_purchase_return_id)
-> Seq Scan on tbl_erp_purchase_returns r_2 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_return_verify_rels rvr_2 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_return_stop_verify_rels rsvr_2 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 4" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_3.id, rvr_3.status, rsvr_3.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_3.id = rsvr_3.erp_inventory_lost_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_3.id = rvr_3.erp_inventory_lost_id)
-> Seq Scan on tbl_erp_inventory_losts r_3 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 5" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_4.id, rvr_4.status, rsvr_4.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_4.id = rsvr_4.erp_inventory_overflow_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_4.id = rvr_4.erp_inventory_overflow_id)
-> Seq Scan on tbl_erp_inventory_overflows r_4 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_overflow_verify_rels rvr_4 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_overflow_stop_verify_rels rsvr_4 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 6" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_5.id, rvr_5.status, rsvr_5.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_5.id = rsvr_5.erp_inventory_build_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_5.id = rvr_5.erp_inventory_build_id)
-> Seq Scan on tbl_erp_inventory_builds r_5 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_5 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_build_stop_verify_rels rsvr_5 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 7" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_6.id, rvr_6.status, rsvr_6.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_6.id = rsvr_6.erp_inventory_disassemble_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_6.id = rvr_6.erp_inventory_disassemble_id)
-> Seq Scan on tbl_erp_inventory_disassembles r_6 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_disassemble_verify_rels rvr_6 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_inventory_disassemble_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 8" (cost=82.74..86.32 rows=179 width=0)
-> HashAggregate (cost=82.74..84.53 rows=179 width=309)
Group Key: r_7.id, rvr_7.status, rsvr_7.status, rcvr_1.status
-> Hash Left Join (cost=66.56..80.95 rows=179 width=16)
Hash Cond: (r_7.id = rcvr_1.erp_sales_order_id)
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_7.id = rsvr_7.erp_sales_order_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_7.id = rvr_7.erp_sales_order_id)
-> Seq Scan on tbl_erp_sales_orders r_7 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_order_verify_rels rvr_7 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_order_stop_verify_rels rsvr_7 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_order_cancel_verify_rels rcvr_1 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 9" (cost=59.96..63.94 rows=199 width=0)
-> HashAggregate (cost=59.96..61.95 rows=199 width=305)
Group Key: r_8.id, rvr_8.status, rsvr_8.status
-> Hash Left Join (cost=44.38..58.47 rows=199 width=12)
Hash Cond: (r_8.id = rsvr_8.erp_sales_outbound_id)
-> Hash Left Join (cost=22.19..35.48 rows=199 width=8)
Hash Cond: (r_8.id = rvr_8.erp_sales_outbound_id)
-> Seq Scan on tbl_erp_sales_outbounds r_8 (cost=0.00..12.50 rows=199 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_8 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_outbound_stop_verify_rels rsvr_8 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 10" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_9.id, rvr_9.status, rsvr_9.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_9.id = rsvr_9.erp_sales_return_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_9.id = rvr_9.erp_sales_return_id)
-> Seq Scan on tbl_erp_sales_returns r_9 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_return_verify_rels rvr_9 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_return_stop_verify_rels rsvr_9 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 11" (cost=59.11..62.49 rows=169 width=0)
-> HashAggregate (cost=59.11..60.80 rows=169 width=305)
Group Key: r_10.id, rvr_10.status, rsvr_10.status
-> Hash Left Join (cost=44.38..57.85 rows=169 width=12)
Hash Cond: (r_10.id = rsvr_10.erp_purchase_gift_id)
-> Hash Left Join (cost=22.19..34.99 rows=169 width=8)
Hash Cond: (r_10.id = rvr_10.erp_purchase_gift_id)
-> Seq Scan on tbl_erp_purchase_gifts r_10 (cost=0.00..12.12 rows=169 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_10 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_gift_stop_verify_rels rsvr_10 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 12" (cost=59.96..63.94 rows=199 width=0)
-> HashAggregate (cost=59.96..61.95 rows=199 width=305)
Group Key: r_11.id, rvr_11.status, rsvr_11.status
-> Hash Left Join (cost=44.38..58.47 rows=199 width=12)
Hash Cond: (r_11.id = rsvr_11.erp_sales_gift_id)
-> Hash Left Join (cost=22.19..35.48 rows=199 width=8)
Hash Cond: (r_11.id = rvr_11.erp_sales_gift_id)
-> Seq Scan on tbl_erp_sales_gifts r_11 (cost=0.00..12.50 rows=199 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_11 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_sales_gift_stop_verify_rels rsvr_11 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 13" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_12.id, rvr_12.status, rsvr_12.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_12.id = rsvr_12.erp_collect_ticket_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_12.id = rvr_12.erp_collect_ticket_id)
-> Seq Scan on tbl_erp_collect_tickets r_12 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_12 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_collect_ticket_stop_verify_rels rsvr_12 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 14" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_13.id, rvr_13.status, rsvr_13.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_13.id = rsvr_13.erp_payment_ticket_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_13.id = rvr_13.erp_payment_ticket_id)
-> Seq Scan on tbl_erp_payment_tickets r_13 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_13 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_payment_ticket_stop_verify_rels rsvr_13 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 15" (cost=59.39..62.97 rows=179 width=0)
-> HashAggregate (cost=59.39..61.18 rows=179 width=305)
Group Key: r_14.id, rvr_14.status, rsvr_14.status
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_14.id = rsvr_14.erp_cost_ticket_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_14.id = rvr_14.erp_cost_ticket_id)
-> Seq Scan on tbl_erp_cost_tickets r_14 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_14 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cost_ticket_stop_verify_rels rsvr_14 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 16" (cost=59.11..62.49 rows=169 width=0)
-> HashAggregate (cost=59.11..60.80 rows=169 width=305)
Group Key: r_15.id, rvr_15.status, rsvr_15.status
-> Hash Left Join (cost=44.38..57.85 rows=169 width=12)
Hash Cond: (r_15.id = rsvr_15.erp_other_income_ticket_id)
-> Hash Left Join (cost=22.19..34.99 rows=169 width=8)
Hash Cond: (r_15.id = rvr_15.erp_other_income_ticket_id)
-> Seq Scan on tbl_erp_other_income_tickets r_15 (cost=0.00..12.12 rows=169 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_15 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_income_ticket_stop_verify_rels rsvr_15 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 17" (cost=59.68..63.46 rows=189 width=0)
-> HashAggregate (cost=59.68..61.57 rows=189 width=305)
Group Key: r_16.id, rvr_16.status, rsvr_16.status
-> Hash Left Join (cost=44.38..58.27 rows=189 width=12)
Hash Cond: (r_16.id = rsvr_16.erp_cost_convert_ticket_id)
-> Hash Left Join (cost=22.19..35.32 rows=189 width=8)
Hash Cond: (r_16.id = rvr_16.erp_cost_convert_ticket_id)
-> Seq Scan on tbl_erp_cost_convert_tickets r_16 (cost=0.00..12.38 rows=189 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_16 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cost_convert_ticket_stop_verify_rels rsvr_16 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 18" (cost=59.96..63.94 rows=199 width=0)
-> HashAggregate (cost=59.96..61.95 rows=199 width=305)
Group Key: r_17.id, rvr_17.status, rsvr_17.status
-> Hash Left Join (cost=44.38..58.47 rows=199 width=12)
Hash Cond: (r_17.id = rsvr_17.erp_bank_transfer_ticket_id)
-> Hash Left Join (cost=22.19..35.48 rows=199 width=8)
Hash Cond: (r_17.id = rvr_17.erp_bank_transfer_ticket_id)
-> Seq Scan on tbl_erp_bank_transfer_tickets r_17 (cost=0.00..12.50 rows=199 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_17 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_bank_transfer_ticket_stop_verify_rels rsvr_17 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 19" (cost=59.68..63.46 rows=189 width=0)
-> HashAggregate (cost=59.68..61.57 rows=189 width=305)
Group Key: r_18.id, rvr_18.status, rsvr_18.status
-> Hash Left Join (cost=44.38..58.27 rows=189 width=12)
Hash Cond: (r_18.id = rsvr_18.erp_cash_cost_ticket_id)
-> Hash Left Join (cost=22.19..35.32 rows=189 width=8)
Hash Cond: (r_18.id = rvr_18.erp_cash_cost_ticket_id)
-> Seq Scan on tbl_erp_cash_cost_tickets r_18 (cost=0.00..12.38 rows=189 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr_18 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_18 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 20" (cost=58.84..62.02 rows=159 width=0)
-> HashAggregate (cost=58.84..60.43 rows=159 width=305)
Group Key: r_19.id, rvr_19.status, rsvr_19.status
-> Hash Left Join (cost=44.38..57.65 rows=159 width=12)
Hash Cond: (r_19.id = rsvr_19.erp_advance_payment_ticket_id)
-> Hash Left Join (cost=22.19..34.82 rows=159 width=8)
Hash Cond: (r_19.id = rvr_19.erp_advance_payment_ticket_id)
-> Seq Scan on tbl_erp_advance_payment_tickets r_19 (cost=0.00..12.00 rows=159 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_advance_payment_ticket_verify_rels rvr_19 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels rsvr_19 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 21" (cost=58.84..62.02 rows=159 width=0)
-> HashAggregate (cost=58.84..60.43 rows=159 width=305)
Group Key: r_20.id, rvr_20.status, rsvr_20.status
-> Hash Left Join (cost=44.38..57.65 rows=159 width=12)
Hash Cond: (r_20.id = rsvr_20.erp_other_payment_ticket_id)
-> Hash Left Join (cost=22.19..34.82 rows=159 width=8)
Hash Cond: (r_20.id = rvr_20.erp_other_payment_ticket_id)
-> Seq Scan on tbl_erp_other_payment_tickets r_20 (cost=0.00..12.00 rows=159 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_20 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_payment_ticket_stop_verify_rels rsvr_20 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 22" (cost=58.56..61.54 rows=149 width=0)
-> HashAggregate (cost=58.56..60.05 rows=149 width=305)
Group Key: r_21.id, rvr_21.status, rsvr_21.status
-> Hash Left Join (cost=44.38..57.45 rows=149 width=12)
Hash Cond: (r_21.id = rsvr_21.erp_other_collect_ticket_id)
-> Hash Left Join (cost=22.19..34.66 rows=149 width=8)
Hash Cond: (r_21.id = rvr_21.erp_other_collect_ticket_id)
-> Seq Scan on tbl_erp_other_collect_tickets r_21 (cost=0.00..11.88 rows=149 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_21 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_other_collect_ticket_stop_verify_rels rsvr_21 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 23" (cost=82.74..86.32 rows=179 width=0)
-> HashAggregate (cost=82.74..84.53 rows=179 width=309)
Group Key: r_22.id, rvr_22.status, rsvr_22.status, rcvr_2.status
-> Hash Left Join (cost=66.56..80.95 rows=179 width=16)
Hash Cond: (r_22.id = rcvr_2.erp_purchase_cost_id)
-> Hash Left Join (cost=44.38..58.05 rows=179 width=12)
Hash Cond: (r_22.id = rsvr_22.erp_purchase_cost_id)
-> Hash Left Join (cost=22.19..35.15 rows=179 width=8)
Hash Cond: (r_22.id = rvr_22.erp_purchase_cost_id)
-> Seq Scan on tbl_erp_purchase_costs r_22 (cost=0.00..12.25 rows=179 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_22 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_cost_stop_verify_rels rsvr_22 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_purchase_cost_cancel_verify_rels rcvr_2 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 24" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_23.id, rvr_23.status, rsvr_23.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_23.id = rsvr_23.erp_wage_ticket_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_23.id = rvr_23.erp_wage_ticket_id)
-> Seq Scan on tbl_erp_wage_tickets r_23 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_23 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_wage_ticket_stop_verify_rels rsvr_23 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 25" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_24.id, rvr_24.status, rsvr_24.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_24.id = rsvr_24.erp_social_insurance_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_24.id = rvr_24.erp_social_insurance_id)
-> Seq Scan on tbl_erp_social_insurances r_24 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_24 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_social_insurance_stop_verify_rels rsvr_24 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 26" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_25.id, rvr_25.status, rsvr_25.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_25.id = rsvr_25.erp_provident_fund_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_25.id = rvr_25.erp_provident_fund_id)
-> Seq Scan on tbl_erp_provident_funds r_25 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_25 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_provident_fund_stop_verify_rels rsvr_25 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 27" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_26.id, rvr_26.status, rsvr_26.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_26.id = rsvr_26.erp_personal_tax_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_26.id = rvr_26.erp_personal_tax_id)
-> Seq Scan on tbl_erp_personal_taxs r_26 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_26 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_personal_tax_stop_verify_rels rsvr_26 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 28" (cost=60.24..64.42 rows=209 width=0)
-> HashAggregate (cost=60.24..62.33 rows=209 width=305)
Group Key: r_27.id, rvr_27.status, rsvr_27.status
-> Hash Left Join (cost=44.38..58.67 rows=209 width=12)
Hash Cond: (r_27.id = rsvr_27.erp_wage_prize_id)
-> Hash Left Join (cost=22.19..35.65 rows=209 width=8)
Hash Cond: (r_27.id = rvr_27.erp_wage_prize_id)
-> Seq Scan on tbl_erp_wage_prizes r_27 (cost=0.00..12.62 rows=209 width=4)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_27 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_wage_prize_stop_verify_rels rsvr_27 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Subquery Scan on "*SELECT* 29" (cost=60.78..65.36 rows=229 width=0)
-> HashAggregate (cost=60.78..63.07 rows=229 width=305)
Group Key: r_28.id, rvr_28.status, rsvr_28.status
-> Hash Left Join (cost=44.38..59.07 rows=229 width=12)
Hash Cond: (r_28.id = rsvr_28.erp_profit_distribute_id)
-> Hash Left Join (cost=22.19..35.97 rows=229 width=8)
Hash Cond: (r_28.id = rvr_28.erp_profit_distribute_id)
-> Seq Scan on tbl_erp_profit_distributes r_28 (cost=0.00..12.88 rows=229 width=8)
Filter: (status <> 0)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_profit_distribute_verify_rels rvr_28 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)
-> Hash (cost=22.12..22.12 rows=5 width=8)
-> Seq Scan on tbl_erp_profit_distribute_stop_verify_rels rsvr_28 (cost=0.00..22.12 rows=5 width=8)
Filter: (user_id = 5493)