Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Limit (cost=1270713704901112775049216.00..1270713704901112775049216.00 rows=100 width=304)
- -> Sort (cost=1270713704901112775049216.00..1297028717483153898340352.00 rows=10526005032816410661748736 width=304)
- Sort Key: t_s_secyear.customer_id, t_s_secyear.customer_first_name, t_s_secyear.customer_last_name, t_s_secyear.customer_email_address
- -> Merge Join (cost=40013363189.88..868417361282644477739008.00 rows=10526005032816410661748736 width=304)
- Merge Cond: ((t_s_secyear.customer_id)::text = (t_c_secyear.customer_id)::text)
- Join Filter: (CASE WHEN (t_c_firstyear.year_total > 0::numeric) THEN (t_c_secyear.year_total / t_c_firstyear.year_total) ELSE NULL::numeric END > CASE WHEN (t_s_firstyear.year_total > 0::numeric) THEN (t_s_secyear.year_total / t_s_firstyear.year_total) ELSE NULL::numeric END)
- -> Merge Join (cost=10012203931.76..12172316972.30 rows=144001536005 width=418)
- Merge Cond: ((t_s_firstyear.customer_id)::text = (t_s_secyear.customer_id)::text)
- -> Sort (cost=3763325.13..3793325.29 rows=375002 width=82)
- Sort Key: t_s_firstyear.customer_id
- -> Subquery Scan on t_s_firstyear (cost=0.00..240001.28 rows=12000064 width=82)
- -> Append (cost=47466749.73..48355947.26 rows=12000064 width=181)
- -> Gather Motion 32:1 (slice4; segments: 32) (cost=47466749.73..48355945.74 rows=12000000 width=181)
- -> HashAggregate (cost=47466749.73..47995945.74 rows=375000 width=482)
- Group Key: customer.c_customer_id, customer.c_first_name, customer.c_last_name, customer.c_preferred_cust_flag, customer.c_birth_country, customer.c_login, customer.c_email_address, date_dim.d_year
- Filter: (sum(((((store_sales_1_prt_others.ss_ext_list_price - store_sales_1_prt_others.ss_ext_wholesale_cost) - store_sales_1_prt_others.ss_ext_discount_amt) + store_sales_1_prt_others.ss_ext_sales_price) / 2::numeric)) > 0::numeric)
- -> Redistribute Motion 32:32 (slice3; segments: 32) (cost=366017.74..46556569.36 rows=410406 width=139)
- Hash Key: customer.c_customer_id, customer.c_first_name, customer.c_last_name, customer.c_preferred_cust_flag, customer.c_birth_country, customer.c_login, customer.c_email_address, date_dim.d_year
- -> Hash Join (cost=366017.74..46293909.64 rows=410406 width=139)
- Hash Cond: (store_sales_1_prt_others.ss_customer_sk = customer.c_customer_sk)
- -> Redistribute Motion 32:32 (slice2; segments: 32) (cost=1440.74..45457604.90 rows=429748 width=30)
- Hash Key: store_sales_1_prt_others.ss_customer_sk
- -> Hash Join (cost=1440.74..45182566.18 rows=429748 width=30)
- Hash Cond: (store_sales_1_prt_others.ss_sold_date_sk = date_dim.d_date_sk)
- -> Append (cost=0.00..34243650.96 rows=89999626 width=30)
- -> Result (cost=0.00..1444840.40 rows=4050027 width=30)
- One-Time Filter: PartSelected
- -> Seq Scan on store_sales_1_prt_others (cost=0.00..1444840.40 rows=4050027 width=30)
- -> Result (cost=0.00..93694.76 rows=245472 width=30)
- One-Time Filter: PartSelected
- -> Seq Scan on store_sales_1_prt_2 (cost=0.00..93694.76 rows=245472 width=30)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for store_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim.d_date_sk
- -> Broadcast Motion 32:32 (slice1; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1998)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer (cost=0.00..161842.00 rows=375000 width=117)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Materialize (cost=8440606.63..8500606.95 rows=375002 width=336)
- -> Sort (cost=8440606.63..8470606.79 rows=375002 width=336)
- Sort Key: t_s_secyear.customer_id
- -> Subquery Scan on t_s_secyear (cost=0.00..240001.28 rows=12000064 width=336)
- -> Append (cost=47244799.93..48016209.97 rows=12000064 width=181)
- -> Gather Motion 32:1 (slice8; segments: 32) (cost=47244799.93..48016208.45 rows=12000000 width=181)
- -> HashAggregate (cost=47244799.93..47656208.45 rows=375000 width=482)
- Group Key: customer_1.c_customer_id, customer_1.c_first_name, customer_1.c_last_name, customer_1.c_preferred_cust_flag, customer_1.c_birth_country, customer_1.c_login, customer_1.c_email_address, date_dim_1.d_year
- -> Redistribute Motion 32:32 (slice7; segments: 32) (cost=366017.74..46556569.36 rows=410406 width=139)
- Hash Key: customer_1.c_customer_id, customer_1.c_first_name, customer_1.c_last_name, customer_1.c_preferred_cust_flag, customer_1.c_birth_country, customer_1.c_login, customer_1.c_email_address, date_dim_1.d_year
- -> Hash Join (cost=366017.74..46293909.64 rows=410406 width=139)
- Hash Cond: (store_sales_1_prt_others_1.ss_customer_sk = customer_1.c_customer_sk)
- -> Redistribute Motion 32:32 (slice6; segments: 32) (cost=1440.74..45457604.90 rows=429748 width=30)
- Hash Key: store_sales_1_prt_others_1.ss_customer_sk
- -> Hash Join (cost=1440.74..45182566.18 rows=429748 width=30)
- Hash Cond: (store_sales_1_prt_others_1.ss_sold_date_sk = date_dim_1.d_date_sk)
- -> Append (cost=0.00..34243650.96 rows=89999626 width=30)
- -> Result (cost=0.00..1444840.40 rows=4050027 width=30)
- One-Time Filter: PartSelected
- -> Seq Scan on store_sales_1_prt_others store_sales_1_prt_others_1 (cost=0.00..1444840.40 rows=4050027 width=30)
- -> Result (cost=0.00..93694.76 rows=245472 width=30)
- One-Time Filter: PartSelected
- -> Seq Scan on store_sales_1_prt_2 store_sales_1_prt_2_1 (cost=0.00..93694.76 rows=245472 width=30)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for store_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim_1.d_date_sk
- -> Broadcast Motion 32:32 (slice5; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim date_dim_1 (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1999)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer customer_1 (cost=0.00..161842.00 rows=375000 width=117)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Materialize (cost=20001159258.12..21946623491724881920.00 rows=6852794763234118 width=264)
- -> Nested Loop (cost=20001159258.12..21946075268143824896.00 rows=219289432423491776 width=264)
- Join Filter: (((t_c_secyear.customer_id)::text = (t_w_firstyear.customer_id)::text) AND (CASE WHEN (t_c_firstyear.year_total > 0::numeric) THEN (t_c_secyear.year_total / t_c_firstyear.year_total) ELSE NULL::numeric END > CASE WHEN (t_w_firstyear.year_total > 0::numeric) THEN (t_w_secyear.year_total / t_w_firstyear.year_total) ELSE NULL::numeric END))
- -> Merge Join (cost=10000927593.96..10195168001.79 rows=12947561386 width=164)
- Merge Cond: ((t_w_firstyear.customer_id)::text = (t_w_secyear.customer_id)::text)
- -> Sort (cost=463796.98..472792.66 rows=112446 width=82)
- Sort Key: t_w_firstyear.customer_id
- -> Subquery Scan on t_w_firstyear (cost=0.00..71965.44 rows=3598272 width=82)
- -> Append (cost=0.04..13358758.26 rows=3598272 width=482)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Gather Motion 32:1 (slice12; segments: 32) (cost=13127804.39..13358756.74 rows=3598208 width=482)
- -> HashAggregate (cost=13127804.39..13250810.50 rows=112444 width=482)
- Group Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
- Filter: (pg_catalog.sum((sum(((((web_sales_1_prt_others.ws_ext_list_price - web_sales_1_prt_others.ws_ext_wholesale_cost) - web_sales_1_prt_others.ws_ext_discount_amt) + web_sales_1_prt_others.ws_ext_sales_price) / 2::numeric)))) > 0::numeric)
- -> Redistribute Motion 32:32 (slice11; segments: 32) (cost=12808131.70..12909100.95 rows=90152 width=450)
- Hash Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
- -> HashAggregate (cost=12808131.70..12851404.24 rows=90152 width=450)
- Group Key: customer_2.c_customer_id, customer_2.c_first_name, customer_2.c_last_name, customer_2.c_preferred_cust_flag, customer_2.c_birth_country, customer_2.c_login, customer_2.c_email_address, date_dim_2.d_year
- -> Hash Join (cost=366017.74..12646211.51 rows=112445 width=142)
- Hash Cond: (web_sales_1_prt_others.ws_bill_customer_sk = customer_2.c_customer_sk)
- -> Redistribute Motion 32:32 (slice10; segments: 32) (cost=1440.74..12115872.96 rows=112472 width=33)
- Hash Key: web_sales_1_prt_others.ws_bill_customer_sk
- -> Hash Join (cost=1440.74..12043890.91 rows=112472 width=33)
- Hash Cond: (web_sales_1_prt_others.ws_sold_date_sk = date_dim_2.d_date_sk)
- -> Append (cost=0.00..9306457.72 rows=22500012 width=33)
- -> Result (cost=0.00..2154.21 rows=5623 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on web_sales_1_prt_others (cost=0.00..2154.21 rows=5623 width=33)
- -> Result (cost=0.00..114696.50 rows=277233 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on web_sales_1_prt_2 (cost=0.00..114696.50 rows=277233 width=33)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for web_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim_2.d_date_sk
- -> Broadcast Motion 32:32 (slice9; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim date_dim_2 (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1998)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer customer_2 (cost=0.00..161842.00 rows=375000 width=117)
- -> Materialize (cost=463796.98..481788.34 rows=112446 width=82)
- -> Sort (cost=463796.98..472792.66 rows=112446 width=82)
- Sort Key: t_w_secyear.customer_id
- -> Subquery Scan on t_w_secyear (cost=0.00..71965.44 rows=3598272 width=82)
- -> Append (cost=0.04..13105538.61 rows=3598272 width=181)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Gather Motion 32:1 (slice16; segments: 32) (cost=12893865.82..13105537.08 rows=3598208 width=181)
- -> HashAggregate (cost=12893865.82..12997590.84 rows=112444 width=482)
- Group Key: customer_3.c_customer_id, customer_3.c_first_name, customer_3.c_last_name, customer_3.c_preferred_cust_flag, customer_3.c_birth_country, customer_3.c_login, customer_3.c_email_address, date_dim_3.d_year
- -> Redistribute Motion 32:32 (slice15; segments: 32) (cost=366017.74..12718176.04 rows=112445 width=142)
- Hash Key: customer_3.c_customer_id, customer_3.c_first_name, customer_3.c_last_name, customer_3.c_preferred_cust_flag, customer_3.c_birth_country, customer_3.c_login, customer_3.c_email_address, date_dim_3.d_year
- -> Hash Join (cost=366017.74..12646211.51 rows=112445 width=142)
- Hash Cond: (web_sales_1_prt_others_1.ws_bill_customer_sk = customer_3.c_customer_sk)
- -> Redistribute Motion 32:32 (slice14; segments: 32) (cost=1440.74..12115872.96 rows=112472 width=33)
- Hash Key: web_sales_1_prt_others_1.ws_bill_customer_sk
- -> Hash Join (cost=1440.74..12043890.91 rows=112472 width=33)
- Hash Cond: (web_sales_1_prt_others_1.ws_sold_date_sk = date_dim_3.d_date_sk)
- -> Append (cost=0.00..9306457.72 rows=22500012 width=33)
- -> Result (cost=0.00..2154.21 rows=5623 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on web_sales_1_prt_others web_sales_1_prt_others_1 (cost=0.00..2154.21 rows=5623 width=33)
- -> Result (cost=0.00..114696.50 rows=277233 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on web_sales_1_prt_2 web_sales_1_prt_2_1 (cost=0.00..114696.50 rows=277233 width=33)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for web_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim_3.d_date_sk
- -> Broadcast Motion 32:32 (slice13; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim date_dim_3 (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1999)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer customer_3 (cost=0.00..161842.00 rows=375000 width=117)
- -> Materialize (cost=231664.16..7411537344.85 rows=1587819025 width=164)
- -> Hash Join (cost=231664.16..6859770232.93 rows=50810208785 width=164)
- Hash Cond: ((t_c_firstyear.customer_id)::text = (t_c_secyear.customer_id)::text)
- -> Subquery Scan on t_c_firstyear (cost=0.00..142562.56 rows=7128128 width=82)
- -> Append (cost=0.04..25892269.72 rows=7128128 width=181)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Gather Motion 32:1 (slice20; segments: 32) (cost=25387445.65..25892268.20 rows=7128064 width=181)
- -> HashAggregate (cost=25387445.65..25678426.28 rows=222752 width=482)
- Group Key: customer_4.c_customer_id, customer_4.c_first_name, customer_4.c_last_name, customer_4.c_preferred_cust_flag, customer_4.c_birth_country, customer_4.c_login, customer_4.c_email_address, date_dim_4.d_year
- Filter: (sum(((((catalog_sales_1_prt_others.cs_ext_list_price - catalog_sales_1_prt_others.cs_ext_wholesale_cost) - catalog_sales_1_prt_others.cs_ext_discount_amt) + catalog_sales_1_prt_others.cs_ext_sales_price) / 2::numeric)) > 0::numeric)
- -> Redistribute Motion 32:32 (slice19; segments: 32) (cost=366017.74..24900443.07 rows=222753 width=142)
- Hash Key: customer_4.c_customer_id, customer_4.c_first_name, customer_4.c_last_name, customer_4.c_preferred_cust_flag, customer_4.c_birth_country, customer_4.c_login, customer_4.c_email_address, date_dim_4.d_year
- -> Hash Join (cost=366017.74..24757881.70 rows=222753 width=142)
- Hash Cond: (catalog_sales_1_prt_others.cs_bill_customer_sk = customer_4.c_customer_sk)
- -> Redistribute Motion 32:32 (slice18; segments: 32) (cost=1440.74..24115937.02 rows=223872 width=33)
- Hash Key: catalog_sales_1_prt_others.cs_bill_customer_sk
- -> Hash Join (cost=1440.74..23972659.31 rows=223872 width=33)
- Hash Cond: (catalog_sales_1_prt_others.cs_sold_date_sk = date_dim_4.d_date_sk)
- -> Append (cost=0.00..18499653.12 rows=44999389 width=33)
- -> Result (cost=0.00..86106.26 rows=225104 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on catalog_sales_1_prt_others (cost=0.00..86106.26 rows=225104 width=33)
- -> Result (cost=0.00..163141.83 rows=397006 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on catalog_sales_1_prt_2 (cost=0.00..163141.83 rows=397006 width=33)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for catalog_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim_4.d_date_sk
- -> Broadcast Motion 32:32 (slice17; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim date_dim_4 (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1998)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer customer_4 (cost=0.00..161842.00 rows=375000 width=117)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Hash (cost=142562.56..142562.56 rows=222754 width=82)
- -> Subquery Scan on t_c_secyear (cost=0.00..142562.56 rows=7128128 width=82)
- -> Append (cost=0.04..26001845.13 rows=7128128 width=482)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- -> Gather Motion 32:1 (slice24; segments: 32) (cost=25580005.26..26001843.60 rows=7128064 width=482)
- -> HashAggregate (cost=25580005.26..25788001.68 rows=222752 width=482)
- Group Key: customer_5.c_customer_id, customer_5.c_first_name, customer_5.c_last_name, customer_5.c_preferred_cust_flag, customer_5.c_birth_country, customer_5.c_login, customer_5.c_email_address, date_dim_5.d_year
- -> Redistribute Motion 32:32 (slice23; segments: 32) (cost=24989543.92..25193889.07 rows=196486 width=450)
- Hash Key: customer_5.c_customer_id, customer_5.c_first_name, customer_5.c_last_name, customer_5.c_preferred_cust_flag, customer_5.c_birth_country, customer_5.c_login, customer_5.c_email_address, date_dim_5.d_year
- -> HashAggregate (cost=24989543.92..25068138.21 rows=196486 width=450)
- Group Key: customer_5.c_customer_id, customer_5.c_first_name, customer_5.c_last_name, customer_5.c_preferred_cust_flag, customer_5.c_birth_country, customer_5.c_login, customer_5.c_email_address, date_dim_5.d_year
- -> Hash Join (cost=366017.74..24757881.70 rows=222753 width=142)
- Hash Cond: (catalog_sales_1_prt_others_1.cs_bill_customer_sk = customer_5.c_customer_sk)
- -> Redistribute Motion 32:32 (slice22; segments: 32) (cost=1440.74..24115937.02 rows=223872 width=33)
- Hash Key: catalog_sales_1_prt_others_1.cs_bill_customer_sk
- -> Hash Join (cost=1440.74..23972659.31 rows=223872 width=33)
- Hash Cond: (catalog_sales_1_prt_others_1.cs_sold_date_sk = date_dim_5.d_date_sk)
- -> Append (cost=0.00..18499653.12 rows=44999389 width=33)
- -> Result (cost=0.00..86106.26 rows=225104 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on catalog_sales_1_prt_others catalog_sales_1_prt_others_1 (cost=0.00..86106.26 rows=225104 width=33)
- -> Result (cost=0.00..163141.83 rows=397006 width=33)
- One-Time Filter: PartSelected
- -> Seq Scan on catalog_sales_1_prt_2 catalog_sales_1_prt_2_1 (cost=0.00..163141.83 rows=397006 width=33)
- -> Hash (cost=1294.64..1294.64 rows=366 width=8)
- -> Partition Selector for catalog_sales (dynamic scan id: 1) (cost=0.00..1294.64 rows=366 width=8)
- Filter: date_dim_5.d_date_sk
- -> Broadcast Motion 32:32 (slice21; segments: 32) (cost=0.00..1294.64 rows=366 width=8)
- -> Seq Scan on date_dim date_dim_5 (cost=0.00..1174.11 rows=12 width=8)
- Filter: (d_year = 1999)
- -> Hash (cost=161842.00..161842.00 rows=375000 width=117)
- -> Seq Scan on customer customer_5 (cost=0.00..161842.00 rows=375000 width=117)
- -> HashAggregate (cost=0.04..0.44 rows=32 width=482)
- Group Key: c_customer_id, c_first_name, c_last_name, c_preferred_cust_flag, c_birth_country, c_login, c_email_address, d_year
- -> Result (cost=0.00..0.01 rows=1 width=0)
- One-Time Filter: false
- Optimizer: Postgres query optimizer
- (2351 rows)
- Time: 815.293 ms
- -- end query 93 in stream 0 using template query4.tpl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement