### 0.01


                                                                         QUERY PLAN

-------------------------------------------------------------------------------------------------------------------------------------------------------------
 Hash Join  (cost=1107.16..2889.79 rows=5 width=290) (actual time=10318.29..19059.75 rows=75 loops=1)
   Hash Cond: ("outer".id = "inner".parent)
   ->  Hash Join  (cost=108.77..1883.16 rows=409 width=270) (actual time=10011.42..18752.13 rows=75 loops=1)
         Hash Cond: ("outer".pathid = "inner".pathid)
         Join Filter: _int_flagment("outer".dewey, "inner".dewey)
         ->  Seq Scan on xml_node p1_xn4  (cost=0.00..1669.07 rows=17379 width=58) (actual time=5526.55..18091.45 rows=518 loops=1)
               Filter: (vchar2real(value) >= 40::double precision)
         ->  Hash  (cost=108.62..108.62 rows=61 width=212) (actual time=580.14..580.14 rows=0 loops=1)
               ->  Nested Loop  (cost=0.00..108.62 rows=61 width=212) (actual time=368.81..572.46 rows=97 loops=1)
                     ->  Nested Loop  (cost=0.00..10.68 rows=1 width=150) (actual time=190.43..190.46 rows=1 loops=1)
                           ->  Index Scan using xml_path_exp on xml_path xp3  (cost=0.00..5.33 rows=1 width=75) (actual time=182.25..182.26 rows=1 loops=1)
                                 Index Cond: (pathexp = '#/site#/closed_auctions#/closed_auction'::character varying)
                           ->  Index Scan using xml_path_exp on xml_path p1_xp4  (cost=0.00..5.34 rows=1 width=75) (actual time=8.14..8.15 rows=1 loops=1)
                                 Index Cond: (p1_xp4.pathexp = ("outer".pathexp || '#/price#/text()'::character varying))
                     ->  Index Scan using xml_node_pathid on xml_node xn3  (cost=0.00..96.39 rows=124 width=62) (actual time=178.35..381.18 rows=97 loops=1)
                           Index Cond: (xn3.pathid = "outer".pathid)
   ->  Hash  (cost=996.77..996.77 rows=644 width=20) (actual time=306.65..306.65 rows=0 loops=1)
         ->  Nested Loop  (cost=0.00..996.77 rows=644 width=20) (actual time=215.70..306.36 rows=97 loops=1)
               ->  Seq Scan on xml_tag xt4  (cost=0.00..1.93 rows=1 width=4) (actual time=35.84..35.85 rows=1 loops=1)
                     Filter: (name = 'price'::character varying)
               ->  Index Scan using xml_node_tagid on xml_node xn4  (cost=0.00..991.07 rows=303 width=16) (actual time=179.83..269.99 rows=97 loops=1)
                     Index Cond: ("outer".tagid = xn4.tagid)
                     Filter: ((kind > 0) AND (kind < 5))
 Total runtime: 19060.59 msec
(24 rows)


### 0.03
                                                                          QUERY PLAN

--------------------------------------------------------------------------------------------------------------------------------------------------------------
 Hash Join  (cost=2931.13..8409.43 rows=34 width=298) (actual time=3011.57..3562.57 rows=200 loops=1)
   Hash Cond: ("outer".id = "inner".parent)
   ->  Hash Join  (cost=315.30..5609.87 rows=2933 width=278) (actual time=2907.94..3457.01 rows=200 loops=1)
         Hash Cond: ("outer".pathid = "inner".pathid)
         Join Filter: _int_flagment("outer".dewey, "inner".dewey)
         ->  Seq Scan on xml_node p1_xn4  (cost=0.00..4907.94 rows=50932 width=60) (actual time=1501.08..3039.81 rows=1475 loops=1)
               Filter: (vchar2real(value) >= 40::double precision)
         ->  Hash  (cost=314.89..314.89 rows=163 width=218) (actual time=168.15..168.15 rows=0 loops=1)
               ->  Nested Loop  (cost=0.00..314.89 rows=163 width=218) (actual time=78.49..167.11 rows=288 loops=1)
                     ->  Nested Loop  (cost=0.00..11.00 rows=1 width=154) (actual time=43.11..43.13 rows=1 loops=1)
                           ->  Index Scan using xml_path_exp on xml_path xp3  (cost=0.00..5.48 rows=1 width=77) (actual time=42.91..42.92 rows=1 loops=1)
                                 Index Cond: (pathexp = '#/site#/closed_auctions#/closed_auction'::character varying)
                           ->  Index Scan using xml_path_exp on xml_path p1_xp4  (cost=0.00..5.51 rows=1 width=77) (actual time=0.15..0.16 rows=1 loops=1)
                                 Index Cond: (p1_xp4.pathexp = ("outer".pathexp || '#/price#/text()'::character varying))
                     ->  Index Scan using xml_node_pathid on xml_node xn3  (cost=0.00..297.77 rows=309 width=64) (actual time=35.35..121.48 rows=288 loops=1)
                           Index Cond: (xn3.pathid = "outer".pathid)
   ->  Hash  (cost=2611.35..2611.35 rows=1796 width=20) (actual time=103.42..103.42 rows=0 loops=1)
         ->  Nested Loop  (cost=0.00..2611.35 rows=1796 width=20) (actual time=58.10..102.56 rows=288 loops=1)
               ->  Seq Scan on xml_tag xt4  (cost=0.00..1.99 rows=1 width=4) (actual time=5.54..5.54 rows=1 loops=1)
                     Filter: (name = 'price'::character varying)
               ->  Index Scan using xml_node_tagid on xml_node xn4  (cost=0.00..2598.78 rows=846 width=16) (actual time=52.55..94.49 rows=288 loops=1)
                     Index Cond: ("outer".tagid = xn4.tagid)
                     Filter: ((kind > 0) AND (kind < 5))
 Total runtime: 3569.11 msec
(24 rows)


###0.05

                                                                         QUERY PLAN

-------------------------------------------------------------------------------------------------------------------------------------------------------------
 Hash Join  (cost=4686.42..14124.02 rows=94 width=296) (actual time=3925.06..4719.36 rows=311 loops=1)
   Hash Cond: ("outer".id = "inner".parent)
   ->  Hash Join  (cost=234.99..9148.68 rows=7468 width=276) (actual time=3497.32..4288.44 rows=311 loops=1)
         Hash Cond: ("outer".pathid = "inner".pathid)
         Join Filter: _int_flagment("outer".dewey, "inner".dewey)
         ->  Seq Scan on xml_node p1_xn4  (cost=0.00..8152.48 rows=85033 width=59) (actual time=747.34..3489.29 rows=2507 loops=1)
               Filter: (vchar2real(value) >= 40::double precision)
         ->  Hash  (cost=234.34..234.34 rows=259 width=217) (actual time=144.38..144.38 rows=0 loops=1)
               ->  Nested Loop  (cost=0.00..234.34 rows=259 width=217) (actual time=125.64..142.46 rows=487 loops=1)
                     ->  Nested Loop  (cost=0.00..11.02 rows=1 width=154) (actual time=57.66..57.68 rows=1 loops=1)
                           ->  Index Scan using xml_path_exp on xml_path xp3  (cost=0.00..5.50 rows=1 width=77) (actual time=57.46..57.47 rows=1 loops=1)
                                 Index Cond: (pathexp = '#/site#/closed_auctions#/closed_auction'::character varying)
                           ->  Index Scan using xml_path_exp on xml_path p1_xp4  (cost=0.00..5.51 rows=1 width=77) (actual time=0.15..0.16 rows=1 loops=1)
                                 Index Cond: (p1_xp4.pathexp = ("outer".pathexp || '#/price#/text()'::character varying))
                     ->  Index Scan using xml_node_pathid on xml_node xn3  (cost=0.00..216.82 rows=520 width=63) (actual time=67.95..80.81 rows=487 loops=1)
                           Index Cond: (xn3.pathid = "outer".pathid)
   ->  Hash  (cost=4443.40..4443.40 rows=3213 width=20) (actual time=427.53..427.53 rows=0 loops=1)
         ->  Nested Loop  (cost=0.00..4443.40 rows=3213 width=20) (actual time=100.58..425.87 rows=487 loops=1)
               ->  Seq Scan on xml_tag xt4  (cost=0.00..1.93 rows=1 width=4) (actual time=11.80..11.81 rows=1 loops=1)
                     Filter: (name = 'price'::character varying)
               ->  Index Scan using xml_node_tagid on xml_node xn4  (cost=0.00..4422.52 rows=1516 width=16) (actual time=88.76..411.28 rows=487 loops=1)
                     Index Cond: ("outer".tagid = xn4.tagid)
                     Filter: ((kind > 0) AND (kind < 5))
 Total runtime: 4725.40 msec
(24 rows)
