

======================================================================
 QUERY FILE: 2 (2.sql)
 TIMESTAMP:  Mon Dec 15 19:02:03 CST 2025
======================================================================

--- [ CONFIG: dp ] ----------------------------------------
Limit  (cost=12368405.70..12368405.71 rows=1 width=192) (actual time=47304.676..47304.699 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22976114 read=1
  ->  Sort  (cost=12368405.70..12368405.71 rows=1 width=192) (actual time=47304.676..47304.694 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22976114 read=1
        ->  Hash Join  (cost=32918.43..12368405.69 rows=1 width=192) (actual time=252.735..47303.740 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
              Buffers: shared hit=22976105 read=1
              ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.012..29.989 rows=811.00 loops=1)
                    Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                    Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                    Rows Removed by Filter: 199189
                    Buffers: shared hit=4097
              ->  Hash  (cost=30521.79..30521.79 rows=159776 width=172) (actual time=156.042..156.050 rows=162880.00 loops=1)
                    Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, partsupp.ps_partkey, partsupp.ps_supplycost, nation.n_name
                    Buckets: 262144  Batches: 1  Memory Usage: 35361kB
                    Buffers: shared hit=17740 read=1
                    ->  Hash Join  (cost=408.03..30521.79 rows=159776 width=172) (actual time=2.017..114.375 rows=162880.00 loops=1)
                          Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, partsupp.ps_partkey, partsupp.ps_supplycost, nation.n_name
                          Hash Cond: (partsupp.ps_suppkey = supplier.s_suppkey)
                          Buffers: shared hit=17740 read=1
                          ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.009..40.515 rows=800000.00 loops=1)
                                Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_availqty, partsupp.ps_supplycost, partsupp.ps_comment
                                Buffers: shared hit=17516
                          ->  Hash  (cost=383.03..383.03 rows=2000 width=166) (actual time=1.999..2.008 rows=2036.00 loops=1)
                                Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey, nation.n_name
                                Buckets: 2048  Batches: 1  Memory Usage: 419kB
                                Buffers: shared hit=224 read=1
                                ->  Hash Join  (cost=2.53..383.03 rows=2000 width=166) (actual time=0.442..1.722 rows=2036.00 loops=1)
                                      Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey, nation.n_name
                                      Hash Cond: (supplier.s_nationkey = nation.n_nationkey)
                                      Buffers: shared hit=224 read=1
                                      ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.007..0.644 rows=10000.00 loops=1)
                                            Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                                            Buffers: shared hit=223
                                      ->  Hash  (cost=2.47..2.47 rows=5 width=30) (actual time=0.429..0.437 rows=5.00 loops=1)
                                            Output: nation.n_name, nation.n_nationkey
                                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                            Buffers: shared hit=1 read=1
                                            ->  Hash Join  (cost=1.07..2.47 rows=5 width=30) (actual time=0.424..0.434 rows=5.00 loops=1)
                                                  Output: nation.n_name, nation.n_nationkey
                                                  Hash Cond: (nation.n_regionkey = region.r_regionkey)
                                                  Buffers: shared hit=1 read=1
                                                  ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.003..0.004 rows=25.00 loops=1)
                                                        Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                                                        Buffers: shared hit=1
                                                  ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.413..0.421 rows=1.00 loops=1)
                                                        Output: region.r_regionkey
                                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                        Buffers: shared read=1
                                                        ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.399..0.400 rows=1.00 loops=1)
                                                              Output: region.r_regionkey
                                                              Filter: (region.r_name = 'AMERICA'::bpchar)
                                                              Rows Removed by Filter: 4
                                                              Buffers: shared read=1
              SubPlan expr_1
                ->  Aggregate  (cost=28019.04..28019.05 rows=1 width=32) (actual time=36.409..36.409 rows=1.00 loops=1294)
                      Output: min(partsupp_1.ps_supplycost)
                      Buffers: shared hit=22954268
                      ->  Nested Loop  (cost=2.53..28019.04 rows=1 width=6) (actual time=35.814..36.400 rows=1.02 loops=1294)
                            Output: partsupp_1.ps_supplycost
                            Join Filter: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                            Rows Removed by Join Filter: 8143
                            Buffers: shared hit=22954268
                            ->  Hash Join  (cost=2.53..383.03 rows=2000 width=4) (actual time=0.002..0.841 rows=2036.00 loops=1294)
                                  Output: supplier_1.s_suppkey
                                  Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                  Buffers: shared hit=288564
                                  ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.001..0.310 rows=10000.00 loops=1294)
                                        Output: supplier_1.s_suppkey, supplier_1.s_name, supplier_1.s_address, supplier_1.s_nationkey, supplier_1.s_phone, supplier_1.s_acctbal, supplier_1.s_comment
                                        Buffers: shared hit=288562
                                  ->  Hash  (cost=2.47..2.47 rows=5 width=4) (actual time=0.022..0.028 rows=5.00 loops=1)
                                        Output: nation_1.n_nationkey
                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                        Buffers: shared hit=2
                                        ->  Hash Join  (cost=1.07..2.47 rows=5 width=4) (actual time=0.018..0.026 rows=5.00 loops=1)
                                              Output: nation_1.n_nationkey
                                              Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                                              Buffers: shared hit=2
                                              ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.003..0.004 rows=25.00 loops=1)
                                                    Output: nation_1.n_nationkey, nation_1.n_name, nation_1.n_regionkey, nation_1.n_comment
                                                    Buffers: shared hit=1
                                              ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.010..0.010 rows=1.00 loops=1)
                                                    Output: region_1.r_regionkey
                                                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                    Buffers: shared hit=1
                                                    ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.008..0.008 rows=1.00 loops=1)
                                                          Output: region_1.r_regionkey
                                                          Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                                          Rows Removed by Filter: 4
                                                          Buffers: shared hit=1
                            ->  Materialize  (cost=0.00..27516.02 rows=4 width=10) (actual time=0.009..0.017 rows=4.00 loops=2634584)
                                  Output: partsupp_1.ps_supplycost, partsupp_1.ps_suppkey
                                  Storage: Memory  Maximum Storage: 17kB
                                  Buffers: shared hit=22665704
                                  ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=17.270..35.006 rows=4.00 loops=1294)
                                        Output: partsupp_1.ps_supplycost, partsupp_1.ps_suppkey
                                        Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                        Rows Removed by Filter: 799996
                                        Buffers: shared hit=22665704
Planning:
  Buffers: shared hit=196
Planning Time: 0.615 ms
Execution Time: 47306.555 ms

--- [ CONFIG: goo_rows ] ----------------------------------------
Limit  (cost=49266618.46..49266618.46 rows=1 width=192) (actual time=44056.977..44056.989 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22795744
  ->  Sort  (cost=49266618.46..49266618.46 rows=1 width=192) (actual time=44056.976..44056.983 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22795744
        ->  Nested Loop  (cost=37516.00..49266618.45 rows=1 width=192) (actual time=264.582..44055.850 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Join Filter: (nation.n_regionkey = region.r_regionkey)
              Buffers: shared hit=22795735
              ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.013..0.018 rows=1.00 loops=1)
                    Output: region.r_regionkey, region.r_name, region.r_comment
                    Filter: (region.r_name = 'AMERICA'::bpchar)
                    Rows Removed by Filter: 4
                    Buffers: shared hit=1
              ->  Nested Loop  (cost=37516.00..49266617.37 rows=1 width=196) (actual time=264.568..44055.564 rows=483.00 loops=1)
                    Output: nation.n_name, nation.n_regionkey, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, part.p_partkey, part.p_mfgr
                    Join Filter: (supplier.s_nationkey = nation.n_nationkey)
                    Rows Removed by Join Filter: 11592
                    Buffers: shared hit=22795734
                    ->  Nested Loop  (cost=37516.00..49266615.81 rows=1 width=170) (actual time=264.562..44052.786 rows=483.00 loops=1)
                          Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_nationkey, part.p_partkey, part.p_mfgr
                          Join Filter: (supplier.s_suppkey = partsupp.ps_suppkey)
                          Rows Removed by Join Filter: 4829517
                          Buffers: shared hit=22795251
                          ->  Hash Join  (cost=37516.00..49266167.81 rows=1 width=34) (actual time=264.211..43673.202 rows=483.00 loops=1)
                                Output: part.p_partkey, part.p_mfgr, partsupp.ps_suppkey
                                Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
                                Buffers: shared hit=22687542
                                ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.013..35.059 rows=811.00 loops=1)
                                      Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                                      Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                                      Rows Removed by Filter: 199189
                                      Buffers: shared hit=4097
                                ->  Hash  (cost=25516.00..25516.00 rows=800000 width=14) (actual time=178.042..178.042 rows=800000.00 loops=1)
                                      Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                      Buckets: 1048576  Batches: 1  Memory Usage: 44895kB
                                      Buffers: shared hit=17516
                                      ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.015..60.766 rows=800000.00 loops=1)
                                            Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                            Buffers: shared hit=17516
                                SubPlan expr_1
                                  ->  Aggregate  (cost=27966.77..27966.78 rows=1 width=32) (actual time=33.578..33.578 rows=1.00 loops=1294)
                                        Output: min(partsupp_1.ps_supplycost)
                                        Buffers: shared hit=22665929
                                        ->  Hash Join  (cost=450.64..27966.77 rows=1 width=6) (actual time=21.093..33.574 rows=1.02 loops=1294)
                                              Output: partsupp_1.ps_supplycost
                                              Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                                              Buffers: shared hit=22665929
                                              ->  Hash Join  (cost=449.56..27965.67 rows=4 width=10) (actual time=16.777..33.573 rows=4.00 loops=1294)
                                                    Output: nation_1.n_regionkey, partsupp_1.ps_supplycost
                                                    Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                                    Buffers: shared hit=22665928
                                                    ->  Hash Join  (cost=448.00..27964.06 rows=4 width=10) (actual time=16.776..33.571 rows=4.00 loops=1294)
                                                          Output: partsupp_1.ps_supplycost, supplier_1.s_nationkey
                                                          Hash Cond: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                                                          Buffers: shared hit=22665927
                                                          ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=16.766..33.558 rows=4.00 loops=1294)
                                                                Output: partsupp_1.ps_partkey, partsupp_1.ps_suppkey, partsupp_1.ps_availqty, partsupp_1.ps_supplycost, partsupp_1.ps_comment
                                                                Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                                                Rows Removed by Filter: 799996
                                                                Buffers: shared hit=22665704
                                                          ->  Hash  (cost=323.00..323.00 rows=10000 width=8) (actual time=1.224..1.224 rows=10000.00 loops=1)
                                                                Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                                Buckets: 16384  Batches: 1  Memory Usage: 519kB
                                                                Buffers: shared hit=223
                                                                ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.010..0.720 rows=10000.00 loops=1)
                                                                      Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                                      Buffers: shared hit=223
                                                    ->  Hash  (cost=1.25..1.25 rows=25 width=8) (actual time=0.013..0.013 rows=25.00 loops=1)
                                                          Output: nation_1.n_nationkey, nation_1.n_regionkey
                                                          Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                          Buffers: shared hit=1
                                                          ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.008..0.010 rows=25.00 loops=1)
                                                                Output: nation_1.n_nationkey, nation_1.n_regionkey
                                                                Buffers: shared hit=1
                                              ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.019..0.019 rows=1.00 loops=1)
                                                    Output: region_1.r_regionkey
                                                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                    Buffers: shared hit=1
                                                    ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.017..0.017 rows=1.00 loops=1)
                                                          Output: region_1.r_regionkey
                                                          Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                                          Rows Removed by Filter: 4
                                                          Buffers: shared hit=1
                          ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.002..0.392 rows=10000.00 loops=483)
                                Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                                Buffers: shared hit=107709
                    ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.001..0.002 rows=25.00 loops=483)
                          Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                          Buffers: shared hit=483
Planning:
  Buffers: shared hit=196
Planning Time: 0.989 ms
Execution Time: 44059.878 ms

--- [ CONFIG: goo_selectivity ] ----------------------------------------
Limit  (cost=49266618.46..49266618.46 rows=1 width=192) (actual time=43688.408..43688.421 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22795744
  ->  Sort  (cost=49266618.46..49266618.46 rows=1 width=192) (actual time=43688.407..43688.415 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22795744
        ->  Nested Loop  (cost=37516.00..49266618.45 rows=1 width=192) (actual time=293.823..43687.286 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Join Filter: (nation.n_regionkey = region.r_regionkey)
              Buffers: shared hit=22795735
              ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.008..0.013 rows=1.00 loops=1)
                    Output: region.r_regionkey, region.r_name, region.r_comment
                    Filter: (region.r_name = 'AMERICA'::bpchar)
                    Rows Removed by Filter: 4
                    Buffers: shared hit=1
              ->  Nested Loop  (cost=37516.00..49266617.37 rows=1 width=196) (actual time=293.814..43687.047 rows=483.00 loops=1)
                    Output: nation.n_name, nation.n_regionkey, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, part.p_partkey, part.p_mfgr
                    Join Filter: (supplier.s_nationkey = nation.n_nationkey)
                    Rows Removed by Join Filter: 11592
                    Buffers: shared hit=22795734
                    ->  Nested Loop  (cost=37516.00..49266615.81 rows=1 width=170) (actual time=293.808..43684.252 rows=483.00 loops=1)
                          Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_nationkey, part.p_partkey, part.p_mfgr
                          Join Filter: (supplier.s_suppkey = partsupp.ps_suppkey)
                          Rows Removed by Join Filter: 4829517
                          Buffers: shared hit=22795251
                          ->  Hash Join  (cost=37516.00..49266167.81 rows=1 width=34) (actual time=293.440..43346.279 rows=483.00 loops=1)
                                Output: part.p_partkey, part.p_mfgr, partsupp.ps_suppkey
                                Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
                                Buffers: shared hit=22687542
                                ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.009..31.442 rows=811.00 loops=1)
                                      Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                                      Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                                      Rows Removed by Filter: 199189
                                      Buffers: shared hit=4097
                                ->  Hash  (cost=25516.00..25516.00 rows=800000 width=14) (actual time=203.639..203.640 rows=800000.00 loops=1)
                                      Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                      Buckets: 1048576  Batches: 1  Memory Usage: 44895kB
                                      Buffers: shared hit=17516
                                      ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.024..63.610 rows=800000.00 loops=1)
                                            Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                            Buffers: shared hit=17516
                                SubPlan expr_1
                                  ->  Aggregate  (cost=27966.77..27966.78 rows=1 width=32) (actual time=33.309..33.309 rows=1.00 loops=1294)
                                        Output: min(partsupp_1.ps_supplycost)
                                        Buffers: shared hit=22665929
                                        ->  Hash Join  (cost=450.64..27966.77 rows=1 width=6) (actual time=20.746..33.305 rows=1.02 loops=1294)
                                              Output: partsupp_1.ps_supplycost
                                              Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                                              Buffers: shared hit=22665929
                                              ->  Hash Join  (cost=449.56..27965.67 rows=4 width=10) (actual time=16.358..33.303 rows=4.00 loops=1294)
                                                    Output: nation_1.n_regionkey, partsupp_1.ps_supplycost
                                                    Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                                    Buffers: shared hit=22665928
                                                    ->  Hash Join  (cost=448.00..27964.06 rows=4 width=10) (actual time=16.357..33.301 rows=4.00 loops=1294)
                                                          Output: partsupp_1.ps_supplycost, supplier_1.s_nationkey
                                                          Hash Cond: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                                                          Buffers: shared hit=22665927
                                                          ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=16.348..33.290 rows=4.00 loops=1294)
                                                                Output: partsupp_1.ps_partkey, partsupp_1.ps_suppkey, partsupp_1.ps_availqty, partsupp_1.ps_supplycost, partsupp_1.ps_comment
                                                                Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                                                Rows Removed by Filter: 799996
                                                                Buffers: shared hit=22665704
                                                          ->  Hash  (cost=323.00..323.00 rows=10000 width=8) (actual time=1.281..1.282 rows=10000.00 loops=1)
                                                                Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                                Buckets: 16384  Batches: 1  Memory Usage: 519kB
                                                                Buffers: shared hit=223
                                                                ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.006..0.722 rows=10000.00 loops=1)
                                                                      Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                                      Buffers: shared hit=223
                                                    ->  Hash  (cost=1.25..1.25 rows=25 width=8) (actual time=0.013..0.014 rows=25.00 loops=1)
                                                          Output: nation_1.n_nationkey, nation_1.n_regionkey
                                                          Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                          Buffers: shared hit=1
                                                          ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.008..0.010 rows=25.00 loops=1)
                                                                Output: nation_1.n_nationkey, nation_1.n_regionkey
                                                                Buffers: shared hit=1
                                              ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.026..0.026 rows=1.00 loops=1)
                                                    Output: region_1.r_regionkey
                                                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                    Buffers: shared hit=1
                                                    ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.023..0.023 rows=1.00 loops=1)
                                                          Output: region_1.r_regionkey
                                                          Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                                          Rows Removed by Filter: 4
                                                          Buffers: shared hit=1
                          ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.002..0.319 rows=10000.00 loops=483)
                                Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                                Buffers: shared hit=107709
                    ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.001..0.002 rows=25.00 loops=483)
                          Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                          Buffers: shared hit=483
Planning:
  Buffers: shared hit=196
Planning Time: 0.532 ms
Execution Time: 43690.050 ms

--- [ CONFIG: goo_result_size ] ----------------------------------------
Limit  (cost=49266334.55..49266334.56 rows=1 width=192) (actual time=41690.948..41690.963 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22795744
  ->  Sort  (cost=49266334.55..49266334.56 rows=1 width=192) (actual time=41690.948..41690.958 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22795744
        ->  Nested Loop  (cost=37517.07..49266334.54 rows=1 width=192) (actual time=273.582..41689.896 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Join Filter: (supplier.s_nationkey = nation.n_nationkey)
              Rows Removed by Join Filter: 1932
              Buffers: shared hit=22795735
              ->  Nested Loop  (cost=37516.00..49266332.01 rows=1 width=170) (actual time=273.551..41686.336 rows=483.00 loops=1)
                    Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_nationkey, part.p_partkey, part.p_mfgr
                    Join Filter: (supplier.s_suppkey = partsupp.ps_suppkey)
                    Rows Removed by Join Filter: 4829517
                    Buffers: shared hit=22795251
                    ->  Hash Join  (cost=37516.00..49265884.01 rows=1 width=34) (actual time=273.181..41365.077 rows=483.00 loops=1)
                          Output: part.p_partkey, part.p_mfgr, partsupp.ps_suppkey
                          Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
                          Buffers: shared hit=22687542
                          ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.011..27.908 rows=811.00 loops=1)
                                Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                                Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                                Rows Removed by Filter: 199189
                                Buffers: shared hit=4097
                          ->  Hash  (cost=25516.00..25516.00 rows=800000 width=14) (actual time=184.600..184.600 rows=800000.00 loops=1)
                                Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                Buckets: 1048576  Batches: 1  Memory Usage: 44895kB
                                Buffers: shared hit=17516
                                ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.011..61.163 rows=800000.00 loops=1)
                                      Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_supplycost
                                      Buffers: shared hit=17516
                          SubPlan expr_1
                            ->  Aggregate  (cost=27966.61..27966.62 rows=1 width=32) (actual time=31.796..31.796 rows=1.00 loops=1294)
                                  Output: min(partsupp_1.ps_supplycost)
                                  Buffers: shared hit=22665929
                                  ->  Hash Join  (cost=450.53..27966.61 rows=1 width=6) (actual time=19.784..31.794 rows=1.02 loops=1294)
                                        Output: partsupp_1.ps_supplycost
                                        Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                        Buffers: shared hit=22665929
                                        ->  Hash Join  (cost=448.00..27964.06 rows=4 width=10) (actual time=15.650..31.792 rows=4.00 loops=1294)
                                              Output: partsupp_1.ps_supplycost, supplier_1.s_nationkey
                                              Hash Cond: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                                              Buffers: shared hit=22665927
                                              ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=15.644..31.784 rows=4.00 loops=1294)
                                                    Output: partsupp_1.ps_partkey, partsupp_1.ps_suppkey, partsupp_1.ps_availqty, partsupp_1.ps_supplycost, partsupp_1.ps_comment
                                                    Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                                    Rows Removed by Filter: 799996
                                                    Buffers: shared hit=22665704
                                              ->  Hash  (cost=323.00..323.00 rows=10000 width=8) (actual time=1.225..1.226 rows=10000.00 loops=1)
                                                    Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                    Buckets: 16384  Batches: 1  Memory Usage: 519kB
                                                    Buffers: shared hit=223
                                                    ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.008..0.723 rows=10000.00 loops=1)
                                                          Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                          Buffers: shared hit=223
                                        ->  Hash  (cost=2.47..2.47 rows=5 width=4) (actual time=0.039..0.040 rows=5.00 loops=1)
                                              Output: nation_1.n_nationkey
                                              Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                              Buffers: shared hit=2
                                              ->  Hash Join  (cost=1.07..2.47 rows=5 width=4) (actual time=0.035..0.038 rows=5.00 loops=1)
                                                    Output: nation_1.n_nationkey
                                                    Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                                                    Buffers: shared hit=2
                                                    ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.017..0.017 rows=25.00 loops=1)
                                                          Output: nation_1.n_nationkey, nation_1.n_name, nation_1.n_regionkey, nation_1.n_comment
                                                          Buffers: shared hit=1
                                                    ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.013..0.013 rows=1.00 loops=1)
                                                          Output: region_1.r_regionkey
                                                          Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                          Buffers: shared hit=1
                                                          ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.010..0.011 rows=1.00 loops=1)
                                                                Output: region_1.r_regionkey
                                                                Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                                                Rows Removed by Filter: 4
                                                                Buffers: shared hit=1
                    ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.002..0.302 rows=10000.00 loops=483)
                          Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                          Buffers: shared hit=107709
              ->  Hash Join  (cost=1.07..2.47 rows=5 width=30) (actual time=0.002..0.004 rows=5.00 loops=483)
                    Output: nation.n_name, nation.n_nationkey
                    Hash Cond: (nation.n_regionkey = region.r_regionkey)
                    Buffers: shared hit=484
                    ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.001..0.002 rows=25.00 loops=483)
                          Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                          Buffers: shared hit=483
                    ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.012..0.012 rows=1.00 loops=1)
                          Output: region.r_regionkey
                          Buckets: 1024  Batches: 1  Memory Usage: 9kB
                          Buffers: shared hit=1
                          ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.008..0.008 rows=1.00 loops=1)
                                Output: region.r_regionkey
                                Filter: (region.r_name = 'AMERICA'::bpchar)
                                Rows Removed by Filter: 4
                                Buffers: shared hit=1
Planning:
  Buffers: shared hit=196
Planning Time: 0.511 ms
Execution Time: 41692.676 ms

--- [ CONFIG: goo_cost ] ----------------------------------------
Limit  (cost=12368405.70..12368405.71 rows=1 width=192) (actual time=43706.869..43706.890 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22976115
  ->  Sort  (cost=12368405.70..12368405.71 rows=1 width=192) (actual time=43706.868..43706.885 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22976115
        ->  Hash Join  (cost=32918.43..12368405.69 rows=1 width=192) (actual time=219.915..43706.070 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
              Buffers: shared hit=22976106
              ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.010..27.293 rows=811.00 loops=1)
                    Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                    Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                    Rows Removed by Filter: 199189
                    Buffers: shared hit=4097
              ->  Hash  (cost=30521.79..30521.79 rows=159776 width=172) (actual time=132.987..132.992 rows=162880.00 loops=1)
                    Output: partsupp.ps_partkey, partsupp.ps_supplycost, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, nation.n_name
                    Buckets: 262144  Batches: 1  Memory Usage: 35119kB
                    Buffers: shared hit=17741
                    ->  Hash Join  (cost=408.03..30521.79 rows=159776 width=172) (actual time=1.459..99.224 rows=162880.00 loops=1)
                          Output: partsupp.ps_partkey, partsupp.ps_supplycost, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, nation.n_name
                          Hash Cond: (partsupp.ps_suppkey = supplier.s_suppkey)
                          Buffers: shared hit=17741
                          ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.008..34.739 rows=800000.00 loops=1)
                                Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_availqty, partsupp.ps_supplycost, partsupp.ps_comment
                                Buffers: shared hit=17516
                          ->  Hash  (cost=383.03..383.03 rows=2000 width=166) (actual time=1.446..1.450 rows=2036.00 loops=1)
                                Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey, nation.n_name
                                Buckets: 2048  Batches: 1  Memory Usage: 419kB
                                Buffers: shared hit=225
                                ->  Hash Join  (cost=2.53..383.03 rows=2000 width=166) (actual time=0.032..1.190 rows=2036.00 loops=1)
                                      Output: supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey, nation.n_name
                                      Hash Cond: (supplier.s_nationkey = nation.n_nationkey)
                                      Buffers: shared hit=225
                                      ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.006..0.559 rows=10000.00 loops=1)
                                            Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                                            Buffers: shared hit=223
                                      ->  Hash  (cost=2.47..2.47 rows=5 width=30) (actual time=0.021..0.024 rows=5.00 loops=1)
                                            Output: nation.n_name, nation.n_nationkey
                                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                            Buffers: shared hit=2
                                            ->  Hash Join  (cost=1.07..2.47 rows=5 width=30) (actual time=0.018..0.022 rows=5.00 loops=1)
                                                  Output: nation.n_name, nation.n_nationkey
                                                  Hash Cond: (nation.n_regionkey = region.r_regionkey)
                                                  Buffers: shared hit=2
                                                  ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.003..0.004 rows=25.00 loops=1)
                                                        Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                                                        Buffers: shared hit=1
                                                  ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.009..0.011 rows=1.00 loops=1)
                                                        Output: region.r_regionkey
                                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                        Buffers: shared hit=1
                                                        ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.007..0.007 rows=1.00 loops=1)
                                                              Output: region.r_regionkey
                                                              Filter: (region.r_name = 'AMERICA'::bpchar)
                                                              Rows Removed by Filter: 4
                                                              Buffers: shared hit=1
              SubPlan expr_1
                ->  Aggregate  (cost=28019.04..28019.05 rows=1 width=32) (actual time=33.648..33.648 rows=1.00 loops=1294)
                      Output: min(partsupp_1.ps_supplycost)
                      Buffers: shared hit=22954268
                      ->  Nested Loop  (cost=2.53..28019.04 rows=1 width=6) (actual time=33.058..33.640 rows=1.02 loops=1294)
                            Output: partsupp_1.ps_supplycost
                            Join Filter: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                            Rows Removed by Join Filter: 8143
                            Buffers: shared hit=22954268
                            ->  Hash Join  (cost=2.53..383.03 rows=2000 width=4) (actual time=0.001..0.837 rows=2036.00 loops=1294)
                                  Output: supplier_1.s_suppkey
                                  Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                  Buffers: shared hit=288564
                                  ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.001..0.308 rows=10000.00 loops=1294)
                                        Output: supplier_1.s_suppkey, supplier_1.s_name, supplier_1.s_address, supplier_1.s_nationkey, supplier_1.s_phone, supplier_1.s_acctbal, supplier_1.s_comment
                                        Buffers: shared hit=288562
                                  ->  Hash  (cost=2.47..2.47 rows=5 width=4) (actual time=0.019..0.020 rows=5.00 loops=1)
                                        Output: nation_1.n_nationkey
                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                        Buffers: shared hit=2
                                        ->  Hash Join  (cost=1.07..2.47 rows=5 width=4) (actual time=0.015..0.018 rows=5.00 loops=1)
                                              Output: nation_1.n_nationkey
                                              Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                                              Buffers: shared hit=2
                                              ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.003..0.004 rows=25.00 loops=1)
                                                    Output: nation_1.n_nationkey, nation_1.n_name, nation_1.n_regionkey, nation_1.n_comment
                                                    Buffers: shared hit=1
                                              ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.007..0.008 rows=1.00 loops=1)
                                                    Output: region_1.r_regionkey
                                                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                    Buffers: shared hit=1
                                                    ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.005..0.006 rows=1.00 loops=1)
                                                          Output: region_1.r_regionkey
                                                          Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                                          Rows Removed by Filter: 4
                                                          Buffers: shared hit=1
                            ->  Materialize  (cost=0.00..27516.02 rows=4 width=10) (actual time=0.008..0.016 rows=4.00 loops=2634584)
                                  Output: partsupp_1.ps_supplycost, partsupp_1.ps_suppkey
                                  Storage: Memory  Maximum Storage: 17kB
                                  Buffers: shared hit=22665704
                                  ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=16.026..32.255 rows=4.00 loops=1294)
                                        Output: partsupp_1.ps_supplycost, partsupp_1.ps_suppkey
                                        Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                        Rows Removed by Filter: 799996
                                        Buffers: shared hit=22665704
Planning:
  Buffers: shared hit=196
Planning Time: 0.481 ms
Execution Time: 43710.933 ms

--- [ CONFIG: geqo ] ----------------------------------------
Limit  (cost=12345416.25..12345416.26 rows=1 width=192) (actual time=41662.304..41662.314 rows=100.00 loops=1)
  Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
  Buffers: shared hit=22687776
  ->  Sort  (cost=12345416.25..12345416.26 rows=1 width=192) (actual time=41662.303..41662.309 rows=100.00 loops=1)
        Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
        Sort Key: supplier.s_acctbal DESC, nation.n_name, supplier.s_name, part.p_partkey
        Sort Method: top-N heapsort  Memory: 70kB
        Buffers: shared hit=22687776
        ->  Hash Join  (cost=32918.43..12345416.24 rows=1 width=192) (actual time=221.176..41661.209 rows=483.00 loops=1)
              Output: supplier.s_acctbal, supplier.s_name, nation.n_name, part.p_partkey, part.p_mfgr, supplier.s_address, supplier.s_phone, supplier.s_comment
              Hash Cond: ((part.p_partkey = partsupp.ps_partkey) AND ((SubPlan expr_1) = partsupp.ps_supplycost))
              Buffers: shared hit=22687767
              ->  Seq Scan on public.part  (cost=0.00..7097.00 rows=880 width=30) (actual time=0.012..28.103 rows=811.00 loops=1)
                    Output: part.p_partkey, part.p_name, part.p_mfgr, part.p_brand, part.p_type, part.p_size, part.p_container, part.p_retailprice, part.p_comment
                    Filter: (((part.p_type)::text ~~ '%COPPER'::text) AND (part.p_size = 3))
                    Rows Removed by Filter: 199189
                    Buffers: shared hit=4097
              ->  Hash  (cost=30521.79..30521.79 rows=159776 width=172) (actual time=136.523..136.525 rows=162880.00 loops=1)
                    Output: partsupp.ps_partkey, partsupp.ps_supplycost, nation.n_name, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment
                    Buckets: 262144  Batches: 1  Memory Usage: 35119kB
                    Buffers: shared hit=17741
                    ->  Hash Join  (cost=408.03..30521.79 rows=159776 width=172) (actual time=1.488..102.682 rows=162880.00 loops=1)
                          Output: partsupp.ps_partkey, partsupp.ps_supplycost, nation.n_name, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment
                          Hash Cond: (partsupp.ps_suppkey = supplier.s_suppkey)
                          Buffers: shared hit=17741
                          ->  Seq Scan on public.partsupp  (cost=0.00..25516.00 rows=800000 width=14) (actual time=0.008..37.317 rows=800000.00 loops=1)
                                Output: partsupp.ps_partkey, partsupp.ps_suppkey, partsupp.ps_availqty, partsupp.ps_supplycost, partsupp.ps_comment
                                Buffers: shared hit=17516
                          ->  Hash  (cost=383.03..383.03 rows=2000 width=166) (actual time=1.476..1.477 rows=2036.00 loops=1)
                                Output: nation.n_name, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey
                                Buckets: 2048  Batches: 1  Memory Usage: 419kB
                                Buffers: shared hit=225
                                ->  Hash Join  (cost=2.53..383.03 rows=2000 width=166) (actual time=0.032..1.201 rows=2036.00 loops=1)
                                      Output: nation.n_name, supplier.s_acctbal, supplier.s_name, supplier.s_address, supplier.s_phone, supplier.s_comment, supplier.s_suppkey
                                      Hash Cond: (supplier.s_nationkey = nation.n_nationkey)
                                      Buffers: shared hit=225
                                      ->  Seq Scan on public.supplier  (cost=0.00..323.00 rows=10000 width=144) (actual time=0.007..0.563 rows=10000.00 loops=1)
                                            Output: supplier.s_suppkey, supplier.s_name, supplier.s_address, supplier.s_nationkey, supplier.s_phone, supplier.s_acctbal, supplier.s_comment
                                            Buffers: shared hit=223
                                      ->  Hash  (cost=2.47..2.47 rows=5 width=30) (actual time=0.022..0.023 rows=5.00 loops=1)
                                            Output: nation.n_name, nation.n_nationkey
                                            Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                            Buffers: shared hit=2
                                            ->  Hash Join  (cost=1.07..2.47 rows=5 width=30) (actual time=0.018..0.021 rows=5.00 loops=1)
                                                  Output: nation.n_name, nation.n_nationkey
                                                  Hash Cond: (nation.n_regionkey = region.r_regionkey)
                                                  Buffers: shared hit=2
                                                  ->  Seq Scan on public.nation  (cost=0.00..1.25 rows=25 width=34) (actual time=0.004..0.005 rows=25.00 loops=1)
                                                        Output: nation.n_nationkey, nation.n_name, nation.n_regionkey, nation.n_comment
                                                        Buffers: shared hit=1
                                                  ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.008..0.009 rows=1.00 loops=1)
                                                        Output: region.r_regionkey
                                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                                        Buffers: shared hit=1
                                                        ->  Seq Scan on public.region  (cost=0.00..1.06 rows=1 width=4) (actual time=0.005..0.006 rows=1.00 loops=1)
                                                              Output: region.r_regionkey
                                                              Filter: (region.r_name = 'AMERICA'::bpchar)
                                                              Rows Removed by Filter: 4
                                                              Buffers: shared hit=1
              SubPlan expr_1
                ->  Aggregate  (cost=27966.79..27966.80 rows=1 width=32) (actual time=32.065..32.065 rows=1.00 loops=1294)
                      Output: min(partsupp_1.ps_supplycost)
                      Buffers: shared hit=22665929
                      ->  Hash Join  (cost=450.64..27966.79 rows=1 width=6) (actual time=20.056..32.063 rows=1.02 loops=1294)
                            Output: partsupp_1.ps_supplycost
                            Hash Cond: (nation_1.n_regionkey = region_1.r_regionkey)
                            Buffers: shared hit=22665929
                            ->  Hash Join  (cost=449.56..27965.69 rows=4 width=10) (actual time=15.872..32.061 rows=4.00 loops=1294)
                                  Output: partsupp_1.ps_supplycost, nation_1.n_regionkey
                                  Hash Cond: (supplier_1.s_nationkey = nation_1.n_nationkey)
                                  Buffers: shared hit=22665928
                                  ->  Hash Join  (cost=448.00..27964.08 rows=4 width=10) (actual time=15.871..32.059 rows=4.00 loops=1294)
                                        Output: partsupp_1.ps_supplycost, supplier_1.s_nationkey
                                        Hash Cond: (partsupp_1.ps_suppkey = supplier_1.s_suppkey)
                                        Buffers: shared hit=22665927
                                        ->  Seq Scan on public.partsupp partsupp_1  (cost=0.00..27516.00 rows=4 width=10) (actual time=15.863..32.050 rows=4.00 loops=1294)
                                              Output: partsupp_1.ps_partkey, partsupp_1.ps_suppkey, partsupp_1.ps_availqty, partsupp_1.ps_supplycost, partsupp_1.ps_comment
                                              Filter: (part.p_partkey = partsupp_1.ps_partkey)
                                              Rows Removed by Filter: 799996
                                              Buffers: shared hit=22665704
                                        ->  Hash  (cost=323.00..323.00 rows=10000 width=8) (actual time=1.172..1.173 rows=10000.00 loops=1)
                                              Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                              Buckets: 16384  Batches: 1  Memory Usage: 519kB
                                              Buffers: shared hit=223
                                              ->  Seq Scan on public.supplier supplier_1  (cost=0.00..323.00 rows=10000 width=8) (actual time=0.003..0.665 rows=10000.00 loops=1)
                                                    Output: supplier_1.s_suppkey, supplier_1.s_nationkey
                                                    Buffers: shared hit=223
                                  ->  Hash  (cost=1.25..1.25 rows=25 width=8) (actual time=0.010..0.010 rows=25.00 loops=1)
                                        Output: nation_1.n_nationkey, nation_1.n_regionkey
                                        Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                        Buffers: shared hit=1
                                        ->  Seq Scan on public.nation nation_1  (cost=0.00..1.25 rows=25 width=8) (actual time=0.005..0.007 rows=25.00 loops=1)
                                              Output: nation_1.n_nationkey, nation_1.n_regionkey
                                              Buffers: shared hit=1
                            ->  Hash  (cost=1.06..1.06 rows=1 width=4) (actual time=0.015..0.015 rows=1.00 loops=1)
                                  Output: region_1.r_regionkey
                                  Buckets: 1024  Batches: 1  Memory Usage: 9kB
                                  Buffers: shared hit=1
                                  ->  Seq Scan on public.region region_1  (cost=0.00..1.06 rows=1 width=4) (actual time=0.013..0.013 rows=1.00 loops=1)
                                        Output: region_1.r_regionkey
                                        Filter: (region_1.r_name = 'AMERICA'::bpchar)
                                        Rows Removed by Filter: 4
                                        Buffers: shared hit=1
Planning:
  Buffers: shared hit=196
Planning Time: 1.663 ms
Execution Time: 41662.709 ms
