Aggregate (cost=26.67..26.68 rows=1 width=8) |
-> Append (cost=0.00..26.53 rows=58 width=0) |
-> Subquery Scan on sub (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 2" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=309) |
Group Key: id, status, status, status |
-> Result (cost=0.00..0.00 rows=0 width=16) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 3" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 4" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 5" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 6" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=309) |
Group Key: id, status, status, status |
-> Result (cost=0.00..0.00 rows=0 width=16) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 7" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 8" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 9" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 10" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 11" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 12" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 13" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 14" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 15" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 16" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 17" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 18" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 19" (cost=25.37..26.01 rows=32 width=0) |
-> HashAggregate (cost=25.37..25.69 rows=32 width=305) |
Group Key: r.id, rvr.status, rsvr.status |
-> Hash Left Join (cost=2.84..25.13 rows=32 width=12) |
Hash Cond: (r.id = rvr.erp_other_payment_ticket_id) |
Filter: (((rvr.user_id = 1001) OR (rsvr.user_id = 1001)) AND ((CASE WHEN (1 = r.verify_type) THEN rvr.status ELSE CASE WHEN (r.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr.status = 0) THEN NULL::integer ELSE rvr.status END END END <> 0) OR (CASE WHEN (1 = r.verify_type) THEN rvr.status ELSE CASE WHEN (r.next_verify_user = 1001) THEN 0 ELSE CASE WHEN (rvr.status = 0) THEN NULL::integer ELSE rvr.status END END END IS NULL))) |
-> Hash Right Join (cost=1.81..23.95 rows=32 width=18) |
Hash Cond: (rsvr.erp_other_payment_ticket_id = r.id) |
Filter: ((CASE WHEN (1 = r.verify_type) THEN rsvr.status ELSE CASE WHEN (r.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr.status = 0) THEN NULL::integer ELSE rsvr.status END END END <> 0) OR (CASE WHEN (1 = r.verify_type) THEN rsvr.status ELSE CASE WHEN (r.next_stop_verify_user = 1001) THEN 0 ELSE CASE WHEN (rsvr.status = 0) THEN NULL::integer ELSE rsvr.status END END END IS NULL)) |
-> Seq Scan on tbl_erp_other_payment_ticket_stop_verify_rels rsvr (cost=0.00..22.12 rows=5 width=12) |
Filter: (user_id = 1001) |
-> Hash (cost=1.41..1.41 rows=32 width=14) |
-> Seq Scan on tbl_erp_other_payment_tickets r (cost=0.00..1.41 rows=32 width=14) |
Filter: (status <> 0) |
-> Hash (cost=1.01..1.01 rows=1 width=12) |
-> Seq Scan on tbl_erp_other_payment_ticket_verify_rels rvr (cost=0.00..1.01 rows=1 width=12) |
Filter: (user_id = 1001) |
-> Subquery Scan on "*SELECT* 20" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 21" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=309) |
Group Key: id, status, status, status |
-> Result (cost=0.00..0.00 rows=0 width=16) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 22" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 23" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 24" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 25" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 26" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |
-> Subquery Scan on "*SELECT* 27" (cost=0.00..0.02 rows=1 width=0) |
-> HashAggregate (cost=0.00..0.01 rows=1 width=305) |
Group Key: id, status, status |
-> Result (cost=0.00..0.00 rows=0 width=12) |
One-Time Filter: false |