| Limit (cost=3012.25..3012.30 rows=20 width=166) |
| -> Sort (cost=3012.25..3056.81 rows=17824 width=166) |
| Sort Key: sub.verify_at DESC NULLS LAST, sub.created_at DESC |
| -> Append (cost=24.36..2537.96 rows=17824 width=166) |
| -> Subquery Scan on sub (cost=24.36..33.28 rows=210 width=166) |
| -> HashAggregate (cost=24.36..31.18 rows=210 width=174) |
| Group Key: r.id, rvr.status, rsvr.status |
| -> Hash Left Join (cost=13.52..22.78 rows=210 width=91) |
| Hash Cond: (r.id = rsvr.erp_purchase_inbound_id) |
| -> Hash Left Join (cost=12.46..20.92 rows=210 width=87) |
| Hash Cond: (r.id = rvr.erp_purchase_inbound_id) |
| -> Seq Scan on tbl_erp_purchase_inbounds r (cost=0.00..7.66 rows=210 width=83) |
| Filter: (status <> 0) |
| -> Hash (cost=12.45..12.45 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_inbound_verify_rels rvr (cost=0.00..12.45 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_inbound_stop_verify_rels rsvr (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 2" (cost=122.65..233.60 rows=2219 width=197) |
| -> HashAggregate (cost=122.65..211.41 rows=2219 width=209) |
| Group Key: r_1.id, rvr_1.status, rsvr_1.status, rcvr.status |
| -> Hash Left Join (cost=7.69..100.46 rows=2219 width=130) |
| Hash Cond: (r_1.id = rcvr.erp_purchase_order_id) |
| -> Hash Left Join (cost=6.60..91.04 rows=2219 width=126) |
| Hash Cond: (r_1.id = rsvr_1.erp_purchase_order_id) |
| -> Hash Left Join (cost=5.34..81.44 rows=2219 width=122) |
| Hash Cond: (r_1.id = rvr_1.erp_purchase_order_id) |
| -> Seq Scan on tbl_erp_purchase_orders r_1 (cost=0.00..67.78 rows=2219 width=118) |
| Filter: (status <> 0) |
| -> Hash (cost=5.33..5.33 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_order_verify_rels rvr_1 (cost=0.00..5.33 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.25..1.25 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_order_stop_verify_rels rsvr_1 (cost=0.00..1.25 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.07..1.07 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_order_cancel_verify_rels rcvr (cost=0.00..1.07 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 3" (cost=24.61..24.86 rows=6 width=230) |
| -> Group (cost=24.61..24.80 rows=6 width=238) |
| Group Key: r_2.id, rvr_2.status, rsvr_2.status |
| -> Sort (cost=24.61..24.62 rows=6 width=155) |
| Sort Key: r_2.id, rvr_2.status, rsvr_2.status |
| -> Nested Loop Left Join (cost=1.15..24.53 rows=6 width=155) |
| Join Filter: (rvr_2.erp_purchase_return_id = r_2.id) |
| -> Hash Right Join (cost=1.15..23.29 rows=6 width=151) |
| Hash Cond: (rsvr_2.erp_purchase_return_id = r_2.id) |
| -> Seq Scan on tbl_erp_purchase_return_stop_verify_rels rsvr_2 (cost=0.00..22.12 rows=5 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.07..1.07 rows=6 width=147) |
| -> Seq Scan on tbl_erp_purchase_returns r_2 (cost=0.00..1.07 rows=6 width=147) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.15 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_return_verify_rels rvr_2 (cost=0.00..1.15 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 4" (cost=3.50..3.84 rows=8 width=166) |
| -> HashAggregate (cost=3.50..3.76 rows=8 width=174) |
| Group Key: r_3.id, rvr_3.status, rsvr_3.status |
| -> Hash Left Join (cost=2.25..3.44 rows=8 width=87) |
| Hash Cond: (r_3.id = rsvr_3.erp_inventory_lost_id) |
| -> Hash Left Join (cost=1.19..2.34 rows=8 width=83) |
| Hash Cond: (r_3.id = rvr_3.erp_inventory_lost_id) |
| -> Seq Scan on tbl_erp_inventory_losts r_3 (cost=0.00..1.11 rows=8 width=79) |
| Filter: (status <> 0) |
| -> Hash (cost=1.18..1.18 rows=1 width=8) |
| -> Seq Scan on tbl_erp_inventory_lost_verify_rels rvr_3 (cost=0.00..1.18 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_inventory_lost_stop_verify_rels rsvr_3 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 5" (cost=3.48..3.86 rows=9 width=206) |
| -> HashAggregate (cost=3.48..3.77 rows=9 width=214) |
| Group Key: r_4.id, rvr_4.status, rsvr_4.status |
| -> Hash Left Join (cost=2.20..3.41 rows=9 width=127) |
| Hash Cond: (r_4.id = rsvr_4.erp_inventory_overflow_id) |
| -> Hash Left Join (cost=1.16..2.33 rows=9 width=123) |
| Hash Cond: (r_4.id = rvr_4.erp_inventory_overflow_id) |
| -> Seq Scan on tbl_erp_inventory_overflows r_4 (cost=0.00..1.12 rows=9 width=119) |
| Filter: (status <> 0) |
| -> Hash (cost=1.15..1.15 rows=1 width=8) |
| -> Seq Scan on tbl_erp_inventory_overflow_verify_rels rvr_4 (cost=0.00..1.15 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.02..1.02 rows=1 width=8) |
| -> Seq Scan on tbl_erp_inventory_overflow_stop_verify_rels rsvr_4 (cost=0.00..1.02 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 6" (cost=24.92..25.34 rows=10 width=160) |
| -> Group (cost=24.92..25.24 rows=10 width=168) |
| Group Key: r_5.id, rvr_5.status, rsvr_5.status |
| -> Sort (cost=24.92..24.94 rows=10 width=81) |
| Sort Key: r_5.id, rvr_5.status, rsvr_5.status |
| -> Nested Loop Left Join (cost=1.27..24.75 rows=10 width=81) |
| Join Filter: (rvr_5.erp_inventory_build_id = r_5.id) |
| -> Hash Right Join (cost=1.27..23.41 rows=10 width=77) |
| Hash Cond: (rsvr_5.erp_inventory_build_id = r_5.id) |
| -> Seq Scan on tbl_erp_inventory_build_stop_verify_rels rsvr_5 (cost=0.00..22.12 rows=5 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.15..1.15 rows=10 width=73) |
| -> Seq Scan on tbl_erp_inventory_builds r_5 (cost=0.00..1.15 rows=10 width=73) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.19 rows=1 width=8) |
| -> Seq Scan on tbl_erp_inventory_build_verify_rels rvr_5 (cost=0.00..1.19 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 7" (cost=24.64..24.81 rows=4 width=215) |
| -> Group (cost=24.64..24.77 rows=4 width=223) |
| Group Key: r_6.id, rvr_6.status, rsvr_6.status |
| -> Sort (cost=24.64..24.65 rows=4 width=136) |
| Sort Key: r_6.id, rvr_6.status, rsvr_6.status |
| -> Nested Loop Left Join (cost=1.11..24.60 rows=4 width=136) |
| Join Filter: (rvr_6.erp_inventory_disassemble_id = r_6.id) |
| -> Hash Right Join (cost=1.11..23.25 rows=4 width=132) |
| Hash Cond: (rsvr_6.erp_inventory_disassemble_id = r_6.id) |
| -> Seq Scan on tbl_erp_inventory_disassemble_stop_verify_rels rsvr_6 (cost=0.00..22.12 rows=5 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.06..1.06 rows=4 width=128) |
| -> Seq Scan on tbl_erp_inventory_disassembles r_6 (cost=0.00..1.06 rows=4 width=128) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.18 rows=3 width=8) |
| -> Seq Scan on tbl_erp_inventory_disassemble_verify_rels rvr_6 (cost=0.00..1.16 rows=3 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 8" (cost=101.11..186.76 rows=1713 width=205) |
| -> HashAggregate (cost=101.11..169.63 rows=1713 width=217) |
| Group Key: r_7.id, rvr_7.status, rsvr_7.status, rcvr_1.status |
| -> Hash Left Join (cost=5.23..83.98 rows=1713 width=138) |
| Hash Cond: (r_7.id = rcvr_1.erp_sales_order_id) |
| -> Hash Left Join (cost=4.15..76.47 rows=1713 width=134) |
| Hash Cond: (r_7.id = rsvr_7.erp_sales_order_id) |
| -> Hash Left Join (cost=2.83..68.71 rows=1713 width=130) |
| Hash Cond: (r_7.id = rvr_7.erp_sales_order_id) |
| -> Seq Scan on tbl_erp_sales_orders r_7 (cost=0.00..59.45 rows=1713 width=126) |
| Filter: (status <> 0) |
| -> Hash (cost=2.81..2.81 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_order_verify_rels rvr_7 (cost=0.00..2.81 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.31..1.31 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_order_stop_verify_rels rsvr_7 (cost=0.00..1.31 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.06..1.06 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_order_cancel_verify_rels rcvr_1 (cost=0.00..1.06 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 9" (cost=18.84..25.34 rows=153 width=216) |
| -> HashAggregate (cost=18.84..23.81 rows=153 width=224) |
| Group Key: r_8.id, rvr_8.status, rsvr_8.status |
| -> Hash Left Join (cost=10.60..17.69 rows=153 width=141) |
| Hash Cond: (r_8.id = rsvr_8.erp_sales_outbound_id) |
| -> Hash Left Join (cost=9.50..16.01 rows=153 width=137) |
| Hash Cond: (r_8.id = rvr_8.erp_sales_outbound_id) |
| -> Seq Scan on tbl_erp_sales_outbounds r_8 (cost=0.00..5.92 rows=153 width=133) |
| Filter: (status <> 0) |
| -> Hash (cost=9.49..9.49 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_outbound_verify_rels rvr_8 (cost=0.00..9.49 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.09..1.09 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_outbound_stop_verify_rels rsvr_8 (cost=0.00..1.09 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 10" (cost=24.56..24.81 rows=6 width=240) |
| -> Group (cost=24.56..24.75 rows=6 width=248) |
| Group Key: r_9.id, rvr_9.status, rsvr_9.status |
| -> Sort (cost=24.56..24.57 rows=6 width=165) |
| Sort Key: r_9.id, rvr_9.status, rsvr_9.status |
| -> Nested Loop Left Join (cost=1.15..24.48 rows=6 width=165) |
| Join Filter: (rvr_9.erp_sales_return_id = r_9.id) |
| -> Hash Right Join (cost=1.15..23.29 rows=6 width=161) |
| Hash Cond: (rsvr_9.erp_sales_return_id = r_9.id) |
| -> Seq Scan on tbl_erp_sales_return_stop_verify_rels rsvr_9 (cost=0.00..22.12 rows=5 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.07..1.07 rows=6 width=157) |
| -> Seq Scan on tbl_erp_sales_returns r_9 (cost=0.00..1.07 rows=6 width=157) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.10 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_return_verify_rels rvr_9 (cost=0.00..1.10 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 11" (cost=4.30..5.19 rows=21 width=168) |
| -> HashAggregate (cost=4.30..4.98 rows=21 width=176) |
| Group Key: r_10.id, rvr_10.status, rsvr_10.status |
| -> Hash Left Join (cost=2.69..4.14 rows=21 width=97) |
| Hash Cond: (r_10.id = rsvr_10.erp_purchase_gift_id) |
| -> Hash Left Join (cost=1.60..2.96 rows=21 width=93) |
| Hash Cond: (r_10.id = rvr_10.erp_purchase_gift_id) |
| -> Seq Scan on tbl_erp_purchase_gifts r_10 (cost=0.00..1.27 rows=21 width=89) |
| Filter: (status <> 0) |
| -> Hash (cost=1.59..1.59 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_gift_verify_rels rvr_10 (cost=0.00..1.59 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.07..1.07 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_gift_stop_verify_rels rsvr_10 (cost=0.00..1.07 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 12" (cost=15.29..20.73 rows=128 width=195) |
| -> HashAggregate (cost=15.29..19.45 rows=128 width=203) |
| Group Key: r_11.id, rvr_11.status, rsvr_11.status |
| -> Hash Left Join (cost=8.74..14.33 rows=128 width=120) |
| Hash Cond: (r_11.id = rsvr_11.erp_sales_gift_id) |
| -> Hash Left Join (cost=7.68..12.78 rows=128 width=116) |
| Hash Cond: (r_11.id = rvr_11.erp_sales_gift_id) |
| -> Seq Scan on tbl_erp_sales_gifts r_11 (cost=0.00..4.61 rows=128 width=112) |
| Filter: (status <> 0) |
| -> Hash (cost=7.66..7.66 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_gift_verify_rels rvr_11 (cost=0.00..7.66 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_sales_gift_stop_verify_rels rsvr_11 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 13" (cost=101.90..195.06 rows=2192 width=146) |
| -> HashAggregate (cost=101.90..173.14 rows=2192 width=154) |
| Group Key: r_12.id, rvr_12.status, rsvr_12.status |
| -> Hash Left Join (cost=5.55..85.46 rows=2192 width=115) |
| Hash Cond: (r_12.id = rsvr_12.erp_collect_ticket_id) |
| -> Hash Left Join (cost=4.46..76.14 rows=2192 width=111) |
| Hash Cond: (r_12.id = rvr_12.erp_collect_ticket_id) |
| -> Seq Scan on tbl_erp_collect_tickets r_12 (cost=0.00..63.45 rows=2192 width=107) |
| Filter: (status <> 0) |
| -> Hash (cost=4.45..4.45 rows=1 width=8) |
| -> Seq Scan on tbl_erp_collect_ticket_verify_rels rvr_12 (cost=0.00..4.45 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.07..1.07 rows=1 width=8) |
| -> Seq Scan on tbl_erp_collect_ticket_stop_verify_rels rsvr_12 (cost=0.00..1.07 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 14" (cost=110.22..210.10 rows=2350 width=151) |
| -> HashAggregate (cost=110.22..186.60 rows=2350 width=159) |
| Group Key: r_13.id, rvr_13.status, rsvr_13.status |
| -> Hash Left Join (cost=6.53..92.60 rows=2350 width=121) |
| Hash Cond: (r_13.id = rsvr_13.erp_payment_ticket_id) |
| -> Hash Left Join (cost=5.40..82.65 rows=2350 width=117) |
| Hash Cond: (r_13.id = rvr_13.erp_payment_ticket_id) |
| -> Seq Scan on tbl_erp_payment_tickets r_13 (cost=0.00..68.42 rows=2350 width=113) |
| Filter: (status <> 0) |
| -> Hash (cost=5.39..5.39 rows=1 width=8) |
| -> Seq Scan on tbl_erp_payment_ticket_verify_rels rvr_13 (cost=0.00..5.39 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.11..1.11 rows=1 width=8) |
| -> Seq Scan on tbl_erp_payment_ticket_stop_verify_rels rsvr_13 (cost=0.00..1.11 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 15" (cost=6.42..8.88 rows=58 width=203) |
| -> HashAggregate (cost=6.42..8.30 rows=58 width=211) |
| Group Key: r_14.id, rvr_14.status, rsvr_14.status |
| -> Hash Left Join (cost=2.79..5.98 rows=58 width=168) |
| Hash Cond: (r_14.id = rsvr_14.erp_cost_ticket_id) |
| -> Hash Left Join (cost=1.74..4.70 rows=58 width=164) |
| Hash Cond: (r_14.id = rvr_14.erp_cost_ticket_id) |
| -> Seq Scan on tbl_erp_cost_tickets r_14 (cost=0.00..2.74 rows=58 width=160) |
| Filter: (status <> 0) |
| -> Hash (cost=1.73..1.73 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cost_ticket_verify_rels rvr_14 (cost=0.00..1.73 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.04..1.04 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cost_ticket_stop_verify_rels rsvr_14 (cost=0.00..1.04 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 16" (cost=4.65..6.31 rows=39 width=172) |
| -> HashAggregate (cost=4.65..5.92 rows=39 width=180) |
| Group Key: r_15.id, rvr_15.status, rsvr_15.status |
| -> Hash Left Join (cost=2.55..4.36 rows=39 width=141) |
| Hash Cond: (r_15.id = rsvr_15.erp_other_income_ticket_id) |
| -> Hash Left Join (cost=1.51..3.17 rows=39 width=137) |
| 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..1.50 rows=39 width=133) |
| Filter: (status <> 0) |
| -> Hash (cost=1.50..1.50 rows=1 width=8) |
| -> Seq Scan on tbl_erp_other_income_ticket_verify_rels rvr_15 (cost=0.00..1.50 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.02..1.02 rows=1 width=8) |
| -> Seq Scan on tbl_erp_other_income_ticket_stop_verify_rels rsvr_15 (cost=0.00..1.02 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 17" (cost=3.48..3.91 rows=10 width=278) |
| -> HashAggregate (cost=3.48..3.81 rows=10 width=286) |
| Group Key: r_16.id, rvr_16.status, rsvr_16.status |
| -> Hash Left Join (cost=2.17..3.41 rows=10 width=207) |
| Hash Cond: (r_16.id = rsvr_16.erp_cost_convert_ticket_id) |
| -> Hash Left Join (cost=1.15..2.33 rows=10 width=203) |
| 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..1.14 rows=10 width=199) |
| Filter: (status <> 0) |
| -> Hash (cost=1.14..1.14 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cost_convert_ticket_verify_rels rvr_16 (cost=0.00..1.14 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.01..1.01 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cost_convert_ticket_stop_verify_rels rsvr_16 (cost=0.00..1.01 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 18" (cost=4.34..5.32 rows=23 width=216) |
| -> HashAggregate (cost=4.34..5.09 rows=23 width=224) |
| Group Key: r_17.id, rvr_17.status, rsvr_17.status |
| -> Hash Left Join (cost=2.68..4.17 rows=23 width=137) |
| Hash Cond: (r_17.id = rsvr_17.erp_bank_transfer_ticket_id) |
| -> Hash Left Join (cost=1.61..3.01 rows=23 width=133) |
| 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..1.30 rows=23 width=129) |
| Filter: (status <> 0) |
| -> Hash (cost=1.60..1.60 rows=1 width=8) |
| -> Seq Scan on tbl_erp_bank_transfer_ticket_verify_rels rvr_17 (cost=0.00..1.60 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_bank_transfer_ticket_stop_verify_rels rsvr_17 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 19" (cost=1016.52..1376.62 rows=8473 width=159) |
| -> HashAggregate (cost=1016.52..1291.89 rows=8473 width=167) |
| Group Key: r_18.id, rvr_18.status, rsvr_18.status |
| -> Hash Left Join (cost=386.35..952.97 rows=8473 width=121) |
| Hash Cond: (r_18.id = rsvr_18.erp_cash_cost_ticket_id) |
| -> Hash Left Join (cost=385.19..920.02 rows=8473 width=117) |
| 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..470.94 rows=8473 width=113) |
| Filter: (status <> 0) |
| -> Hash (cost=384.75..384.75 rows=35 width=8) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_verify_rels rvr_18 (cost=0.00..384.75 rows=35 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.15..1.15 rows=1 width=8) |
| -> Seq Scan on tbl_erp_cash_cost_ticket_stop_verify_rels rsvr_18 (cost=0.00..1.15 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 20" (cost=3.19..3.27 rows=2 width=145) |
| -> Group (cost=3.19..3.25 rows=2 width=153) |
| Group Key: r_19.id, rvr_19.status, rsvr_19.status |
| -> Sort (cost=3.19..3.19 rows=2 width=107) |
| Sort Key: r_19.id, rvr_19.status, rsvr_19.status |
| -> Nested Loop Left Join (cost=0.00..3.18 rows=2 width=107) |
| Join Filter: (rsvr_19.erp_advance_payment_ticket_id = r_19.id) |
| -> Nested Loop Left Join (cost=0.00..2.12 rows=2 width=103) |
| Join Filter: (rvr_19.erp_advance_payment_ticket_id = r_19.id) |
| -> Seq Scan on tbl_erp_advance_payment_tickets r_19 (cost=0.00..1.04 rows=2 width=99) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_advance_payment_ticket_verify_rels rvr_19 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Materialize (cost=0.00..1.03 rows=1 width=8) |
| -> Seq Scan on tbl_erp_advance_payment_ticket_stop_verify_rels rsvr_19 (cost=0.00..1.02 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 21" (cost=26.64..28.51 rows=44 width=158) |
| -> HashAggregate (cost=26.64..28.07 rows=44 width=166) |
| Group Key: r_20.id, rvr_20.status, rsvr_20.status |
| -> Hash Left Join (cost=23.40..26.31 rows=44 width=127) |
| Hash Cond: (r_20.id = rsvr_20.erp_other_payment_ticket_id) |
| -> Hash Left Join (cost=1.21..3.95 rows=44 width=123) |
| 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..2.56 rows=44 width=119) |
| Filter: (status <> 0) |
| -> Hash (cost=1.20..1.20 rows=1 width=8) |
| -> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr_20 (cost=0.00..1.20 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> 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 = 1000) |
| -> Subquery Scan on "*SELECT* 22" (cost=5.91..7.87 rows=46 width=180) |
| -> HashAggregate (cost=5.91..7.41 rows=46 width=188) |
| Group Key: r_21.id, rvr_21.status, rsvr_21.status |
| -> Hash Left Join (cost=2.61..5.57 rows=46 width=149) |
| Hash Cond: (r_21.id = rsvr_21.erp_other_collect_ticket_id) |
| -> Hash Left Join (cost=1.55..4.32 rows=46 width=145) |
| 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..2.59 rows=46 width=141) |
| Filter: (status <> 0) |
| -> Hash (cost=1.54..1.54 rows=1 width=8) |
| -> Seq Scan on tbl_erp_other_collect_ticket_verify_rels rvr_21 (cost=0.00..1.54 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_other_collect_ticket_stop_verify_rels rsvr_21 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 23" (cost=8.06..10.61 rows=51 width=241) |
| -> HashAggregate (cost=8.06..10.10 rows=51 width=253) |
| Group Key: r_22.id, rvr_22.status, rsvr_22.status, rcvr_2.status |
| -> Hash Left Join (cost=4.30..7.55 rows=51 width=174) |
| Hash Cond: (r_22.id = rcvr_2.erp_purchase_cost_id) |
| -> Hash Left Join (cost=3.25..6.30 rows=51 width=170) |
| Hash Cond: (r_22.id = rsvr_22.erp_purchase_cost_id) |
| -> Hash Left Join (cost=2.10..4.95 rows=51 width=166) |
| Hash Cond: (r_22.id = rvr_22.erp_purchase_cost_id) |
| -> Seq Scan on tbl_erp_purchase_costs r_22 (cost=0.00..2.65 rows=51 width=162) |
| Filter: (status <> 0) |
| -> Hash (cost=2.09..2.09 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_cost_verify_rels rvr_22 (cost=0.00..2.09 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.14..1.14 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_cost_stop_verify_rels rsvr_22 (cost=0.00..1.14 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.04..1.04 rows=1 width=8) |
| -> Seq Scan on tbl_erp_purchase_cost_cancel_verify_rels rcvr_2 (cost=0.00..1.04 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 24" (cost=3.64..4.24 rows=14 width=201) |
| -> HashAggregate (cost=3.64..4.10 rows=14 width=209) |
| Group Key: r_23.id, rvr_23.status, rsvr_23.status |
| -> Hash Left Join (cost=2.23..3.54 rows=14 width=155) |
| Hash Cond: (r_23.id = rsvr_23.erp_wage_ticket_id) |
| -> Hash Left Join (cost=1.19..2.44 rows=14 width=151) |
| Hash Cond: (r_23.id = rvr_23.erp_wage_ticket_id) |
| -> Seq Scan on tbl_erp_wage_tickets r_23 (cost=0.00..1.19 rows=14 width=147) |
| Filter: (status <> 0) |
| -> Hash (cost=1.18..1.18 rows=1 width=8) |
| -> Seq Scan on tbl_erp_wage_ticket_verify_rels rvr_23 (cost=0.00..1.18 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.02..1.02 rows=1 width=8) |
| -> Seq Scan on tbl_erp_wage_ticket_stop_verify_rels rsvr_23 (cost=0.00..1.02 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 25" (cost=3.69..4.15 rows=11 width=174) |
| -> HashAggregate (cost=3.69..4.04 rows=11 width=182) |
| Group Key: r_24.id, rvr_24.status, rsvr_24.status |
| -> Hash Left Join (cost=2.35..3.60 rows=11 width=128) |
| Hash Cond: (r_24.id = rsvr_24.erp_social_insurance_id) |
| -> Hash Left Join (cost=1.29..2.49 rows=11 width=124) |
| Hash Cond: (r_24.id = rvr_24.erp_social_insurance_id) |
| -> Seq Scan on tbl_erp_social_insurances r_24 (cost=0.00..1.15 rows=11 width=120) |
| Filter: (status <> 0) |
| -> Hash (cost=1.27..1.27 rows=1 width=8) |
| -> Seq Scan on tbl_erp_social_insurance_verify_rels rvr_24 (cost=0.00..1.27 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.05..1.05 rows=1 width=8) |
| -> Seq Scan on tbl_erp_social_insurance_stop_verify_rels rsvr_24 (cost=0.00..1.05 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 26" (cost=24.79..25.13 rows=8 width=190) |
| -> Group (cost=24.79..25.05 rows=8 width=198) |
| Group Key: r_25.id, rvr_25.status, rsvr_25.status |
| -> Sort (cost=24.79..24.81 rows=8 width=144) |
| Sort Key: r_25.id, rvr_25.status, rsvr_25.status |
| -> Nested Loop Left Join (cost=1.21..24.67 rows=8 width=144) |
| Join Filter: (rvr_25.erp_provident_fund_id = r_25.id) |
| -> Hash Right Join (cost=1.21..23.35 rows=8 width=140) |
| Hash Cond: (rsvr_25.erp_provident_fund_id = r_25.id) |
| -> Seq Scan on tbl_erp_provident_fund_stop_verify_rels rsvr_25 (cost=0.00..22.12 rows=5 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.11..1.11 rows=8 width=136) |
| -> Seq Scan on tbl_erp_provident_funds r_25 (cost=0.00..1.11 rows=8 width=136) |
| Filter: (status <> 0) |
| -> Materialize (cost=0.00..1.20 rows=1 width=8) |
| -> Seq Scan on tbl_erp_provident_fund_verify_rels rvr_25 (cost=0.00..1.20 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 27" (cost=3.43..3.81 rows=9 width=181) |
| -> HashAggregate (cost=3.43..3.72 rows=9 width=189) |
| Group Key: r_26.id, rvr_26.status, rsvr_26.status |
| -> Hash Left Join (cost=2.15..3.36 rows=9 width=135) |
| Hash Cond: (r_26.id = rsvr_26.erp_personal_tax_id) |
| -> Hash Left Join (cost=1.12..2.29 rows=9 width=131) |
| Hash Cond: (r_26.id = rvr_26.erp_personal_tax_id) |
| -> Seq Scan on tbl_erp_personal_taxs r_26 (cost=0.00..1.12 rows=9 width=127) |
| Filter: (status <> 0) |
| -> Hash (cost=1.11..1.11 rows=1 width=8) |
| -> Seq Scan on tbl_erp_personal_tax_verify_rels rvr_26 (cost=0.00..1.11 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Hash (cost=1.01..1.01 rows=1 width=8) |
| -> Seq Scan on tbl_erp_personal_tax_stop_verify_rels rsvr_26 (cost=0.00..1.01 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 28" (cost=3.28..3.45 rows=4 width=206) |
| -> Group (cost=3.28..3.41 rows=4 width=214) |
| Group Key: r_27.id, rvr_27.status, rsvr_27.status |
| -> Sort (cost=3.28..3.29 rows=4 width=160) |
| Sort Key: r_27.id, rvr_27.status, rsvr_27.status |
| -> Nested Loop Left Join (cost=1.02..3.24 rows=4 width=160) |
| Join Filter: (rvr_27.erp_wage_prize_id = r_27.id) |
| -> Hash Left Join (cost=1.02..2.11 rows=4 width=156) |
| Hash Cond: (r_27.id = rsvr_27.erp_wage_prize_id) |
| -> Seq Scan on tbl_erp_wage_prizes r_27 (cost=0.00..1.06 rows=4 width=152) |
| Filter: (status <> 0) |
| -> Hash (cost=1.01..1.01 rows=1 width=8) |
| -> Seq Scan on tbl_erp_wage_prize_stop_verify_rels rsvr_27 (cost=0.00..1.01 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Materialize (cost=0.00..1.07 rows=1 width=8) |
| -> Seq Scan on tbl_erp_wage_prize_verify_rels rvr_27 (cost=0.00..1.06 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Subquery Scan on "*SELECT* 29" (cost=28.12..28.29 rows=3 width=375) |
| -> GroupAggregate (cost=28.12..28.26 rows=3 width=383) |
| Group Key: r_28.id, rvr_28.status, rsvr_28.status |
| -> Sort (cost=28.12..28.12 rows=3 width=273) |
| Sort Key: r_28.id, rvr_28.status, rsvr_28.status |
| -> Nested Loop Left Join (cost=0.28..28.09 rows=3 width=273) |
| Join Filter: (rsvr_28.erp_profit_distribute_id = r_28.id) |
| -> Nested Loop Left Join (cost=0.28..27.03 rows=3 width=269) |
| Join Filter: (rvr_28.erp_profit_distribute_id = r_28.id) |
| -> Nested Loop Left Join (cost=0.28..25.95 rows=3 width=265) |
| -> Seq Scan on tbl_erp_profit_distributes r_28 (cost=0.00..1.05 rows=3 width=264) |
| Filter: (status <> 0) |
| -> Index Scan using tbl_projects_pkey on tbl_projects p (cost=0.28..8.30 rows=1 width=9) |
| Index Cond: (r_28.project_id = id) |
| -> Materialize (cost=0.00..1.04 rows=1 width=8) |
| -> Seq Scan on tbl_erp_profit_distribute_verify_rels rvr_28 (cost=0.00..1.04 rows=1 width=8) |
| Filter: (user_id = 1000) |
| -> Materialize (cost=0.00..1.02 rows=1 width=8) |
| -> Seq Scan on tbl_erp_profit_distribute_stop_verify_rels rsvr_28 (cost=0.00..1.01 rows=1 width=8) |
| Filter: (user_id = 1000) |