Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1239C475DAD for ; Thu, 21 Nov 2002 16:03:34 -0500 (EST) Received: from dg.eisolution.com (dsl-232-15.speedsite.com [206.126.232.15]) by postgresql.org (Postfix) with ESMTP id AEA66475BF9 for ; Thu, 21 Nov 2002 16:03:32 -0500 (EST) Received: from marcmdelltop (dg124.eisolution.com [10.5.1.124]) (authenticated) by dg.eisolution.com (8.11.6/8.11.6) with ESMTP id gALL3SB10004; Thu, 21 Nov 2002 15:03:28 -0600 Message-ID: <00c101c291a1$9b99b820$7c01050a@marcmdelltop> From: "Marc Mitchell" To: "Tom Lane" Cc: References: <005501c2917f$61ca09a0$7c01050a@marcmdelltop> <13938.1037907911@sss.pgh.pa.us> Subject: Re: Query performanc issue - too many table? Date: Thu, 21 Nov 2002 15:04:40 -0600 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00BE_01C2916F.50DDB660" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200211/198 X-Sequence-Number: 6386 This is a multi-part message in MIME format. ------=_NextPart_000_00BE_01C2916F.50DDB660 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Please excuse the attachment but these EXPLAIN ANALYSE were getting so wide, email was making it hard to fight word-wrap. The attached output is from 3 consecutive EXPLAIN ANALYSEs of the exact same query. Each has a merge join floating somewhere within the query. This has to be the culprit in terms of performance as this should be a straightforward (albeit lengthy) step ladder keyed join query. The question then becomes why chose to do merge. Based on Tom's comment about GEQC, we then did a "set geqc to false" and ran the query again and got great results. They too are included in the log. So, is GEQC broken or just misconfigured on our box? If the latter, what is the proper config? We've made no changes from the default settings? If the former, can I simply shut it off? Is the only time this comes into play equate to the number of times I see the debug message appear in the postmaster log? Marc ----- Original Message ----- From: "Tom Lane" To: "Marc Mitchell" Cc: Sent: Thursday, November 21, 2002 1:45 PM Subject: Re: [ADMIN] Query performanc issue - too many table? > "Marc Mitchell" writes: > > I am having a problem with the below SQL taking an extreme amount of time > > to run. The problem is that the explain looks great with all index scans. > > But the query itself takes minutes to run. The query contains 11 tables. > > We've found that by dropping any one table, performance reverts to being > > nearly instantaneous. > > 11 tables is the default GEQO threshold, so I'm wondering if the GEQO > planner is missing the best plan. It's hard to tell much though without > seeing plans for *both* queries you are comparing. EXPLAIN ANALYZE > output would be much more useful than just EXPLAIN, too. > > regards, tom lane ------=_NextPart_000_00BE_01C2916F.50DDB660 Content-Type: text/plain; name="log.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="log.txt" \i report.sql=20 psql:report.sql:42: NOTICE: QUERY PLAN: Nested Loop (cost=3D71078.34..71123.20 rows=3D8 width=3D552) (actual time= =3D22741.25..22741.28 rows=3D1 loops=3D1) -> Merge Join (cost=3D71078.34..71099.82 rows=3D8 width=3D548) (actual = time=3D22740.72..22740.74 rows=3D1 loops=3D1) -> Sort (cost=3D71078.34..71078.34 rows=3D8 width=3D490) (actual = time=3D22739.63..22739.63 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71078.23 rows=3D8 width=3D= 490) (actual time=3D19104.00..22739.46 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71049.68 rows=3D8 wi= dth=3D486) (actual time=3D19103.66..22739.10 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71019.95 rows= =3D8 width=3D320) (actual time=3D19103.38..22738.82 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70989.20= rows=3D8 width=3D262) (actual time=3D19103.05..22738.48 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70= 959.00 rows=3D8 width=3D204) (actual time=3D19102.87..22738.30 rows=3D1 loo= ps=3D1) -> Nested Loop (cost=3D11547.= 95..70928.80 rows=3D8 width=3D142) (actual time=3D19102.56..22737.97 rows= =3D1 loops=3D1) -> Hash Join (cost=3D11= 547.95..70892.21 rows=3D12 width=3D60) (actual time=3D19102.15..22737.55 ro= ws=3D1 loops=3D1) -> Hash Join (cos= t=3D11544.92..67740.21 rows=3D629765 width=3D36) (actual time=3D2625.42..21= 917.30 rows=3D629614 loops=3D1) -> Index Sca= n using txl_fgp_uid on transloading txl (cost=3D0.00..29898.75 rows=3D6297= 65 width=3D28) (actual time=3D0.41..6581.90 rows=3D629765 loops=3D1) -> Hash (co= st=3D9935.04..9935.04 rows=3D251153 width=3D8) (actual time=3D2622.99..2622= .99 rows=3D0 loops=3D1) -> Ind= ex Scan using stp_trp_uid on trip_stop stp (cost=3D0.00..9935.04 rows=3D25= 1153 width=3D8) (actual time=3D0.39..1949.98 rows=3D251153 loops=3D1) -> Hash (cost=3D3= .03..3.03 rows=3D1 width=3D24) (actual time=3D0.35..0.35 rows=3D0 loops=3D1) -> Index Sca= n using trip_pkey on trip trp (cost=3D0.00..3.03 rows=3D1 width=3D24) (act= ual time=3D0.33..0.34 rows=3D1 loops=3D1) -> Index Scan using frei= ght_group_pkey on freight_group fgp (cost=3D0.00..3.01 rows=3D1 width=3D82= ) (actual time=3D0.38..0.38 rows=3D1 loops=3D1) -> Index Scan using place_pkey= on place plc1 (cost=3D0.00..3.90 rows=3D1 width=3D62) (actual time=3D0.28= ..0.28 rows=3D1 loops=3D1) -> Index Scan using place_pkey on pl= ace plc2 (cost=3D0.00..3.90 rows=3D1 width=3D58) (actual time=3D0.14..0.15= rows=3D1 loops=3D1) -> Index Scan using trailer_pkey on traile= r trl (cost=3D0.00..3.97 rows=3D1 width=3D58) (actual time=3D0.29..0.29 ro= ws=3D1 loops=3D1) -> Index Scan using driver_pkey on driver dri (= cost=3D0.00..3.84 rows=3D1 width=3D166) (actual time=3D0.23..0.23 rows=3D1 = loops=3D1) -> Index Scan using geo_location_pkey on geo_location = loc1 (cost=3D0.00..3.68 rows=3D1 width=3D4) (actual time=3D0.29..0.30 rows= =3D1 loops=3D1) -> Index Scan using power_unit_pkey on power_unit pwu (cost=3D0.0= 0..20.71 rows=3D260 width=3D58) (actual time=3D0.23..0.91 rows=3D46 loops= =3D1) -> Index Scan using customer_order_pkey on customer_order ord (cost=3D0= .00..3.01 rows=3D1 width=3D4) (actual time=3D0.49..0.49 rows=3D1 loops=3D1) Total runtime: 22742.21 msec EXPLAIN test=3D# \i report.sql=20 psql:report.sql:42: NOTICE: QUERY PLAN: Nested Loop (cost=3D0.00..94043.77 rows=3D8 width=3D552) (actual time=3D21= 399.22..23452.35 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..94015.22 rows=3D8 width=3D548) (actual tim= e=3D21398.88..23452.01 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..93985.02 rows=3D8 width=3D490) (actu= al time=3D21398.68..23451.80 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..93954.83 rows=3D8 width=3D428)= (actual time=3D21398.32..23451.43 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..93931.44 rows=3D8 width= =3D424) (actual time=3D21397.89..23450.99 rows=3D1 loops=3D1) -> Merge Join (cost=3D0.00..93894.85 rows=3D12 = width=3D342) (actual time=3D21397.43..23450.52 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..36211.15 row= s=3D629765 width=3D334) (actual time=3D0.93..13795.69 rows=3D629765 loops= =3D1) -> Nested Loop (cost=3D0.00..14.75 = rows=3D1 width=3D306) (actual time=3D0.52..0.56 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..= 10.86 rows=3D1 width=3D248) (actual time=3D0.48..0.50 rows=3D1 loops=3D1) -> Nested Loop (cost=3D= 0.00..6.88 rows=3D1 width=3D190) (actual time=3D0.43..0.45 rows=3D1 loops= =3D1) -> Index Scan usin= g trip_pkey on trip trp (cost=3D0.00..3.03 rows=3D1 width=3D24) (actual ti= me=3D0.39..0.39 rows=3D1 loops=3D1) -> Index Scan usin= g driver_pkey on driver dri (cost=3D0.00..3.84 rows=3D1 width=3D166) (actu= al time=3D0.03..0.04 rows=3D1 loops=3D1) -> Index Scan using trai= ler_pkey on trailer trl (cost=3D0.00..3.97 rows=3D1 width=3D58) (actual ti= me=3D0.03..0.03 rows=3D1 loops=3D1) -> Index Scan using power_unit= _pkey on power_unit pwu (cost=3D0.00..3.88 rows=3D1 width=3D58) (actual ti= me=3D0.02..0.03 rows=3D1 loops=3D1) -> Index Scan using txl_fgp_uid on t= ransloading txl (cost=3D0.00..29898.75 rows=3D629765 width=3D28) (actual t= ime=3D0.39..6634.66 rows=3D629765 loops=3D1) -> Index Scan using stp_trp_uid on trip_st= op stp (cost=3D0.00..9935.04 rows=3D251153 width=3D8) (actual time=3D0.36.= .5318.80 rows=3D863408 loops=3D1) -> Index Scan using freight_group_pkey on freigh= t_group fgp (cost=3D0.00..3.01 rows=3D1 width=3D82) (actual time=3D0.41..0= .42 rows=3D1 loops=3D1) -> Index Scan using customer_order_pkey on customer_or= der ord (cost=3D0.00..3.01 rows=3D1 width=3D4) (actual time=3D0.38..0.38 r= ows=3D1 loops=3D1) -> Index Scan using place_pkey on place plc1 (cost=3D0.00..= 3.90 rows=3D1 width=3D62) (actual time=3D0.30..0.31 rows=3D1 loops=3D1) -> Index Scan using place_pkey on place plc2 (cost=3D0.00..3.90 r= ows=3D1 width=3D58) (actual time=3D0.15..0.16 rows=3D1 loops=3D1) -> Index Scan using geo_location_pkey on geo_location loc1 (cost=3D0.00= ..3.68 rows=3D1 width=3D4) (actual time=3D0.30..0.30 rows=3D1 loops=3D1) Total runtime: 23453.23 msec EXPLAIN test=3D# \i report.sql=20 psql:report.sql:42: NOTICE: QUERY PLAN: Nested Loop (cost=3D70989.31..71123.20 rows=3D8 width=3D552) (actual time= =3D22852.85..22852.91 rows=3D1 loops=3D1) -> Nested Loop (cost=3D70989.31..71094.65 rows=3D8 width=3D548) (actual= time=3D22852.51..22852.57 rows=3D1 loops=3D1) -> Nested Loop (cost=3D70989.31..71064.92 rows=3D8 width=3D382) (= actual time=3D22852.23..22852.27 rows=3D1 loops=3D1) -> Nested Loop (cost=3D70989.31..71041.53 rows=3D8 width=3D= 378) (actual time=3D22851.82..22851.86 rows=3D1 loops=3D1) -> Merge Join (cost=3D70989.31..71010.79 rows=3D8 wid= th=3D320) (actual time=3D22851.46..22851.49 rows=3D1 loops=3D1) -> Sort (cost=3D70989.31..70989.31 rows=3D8 wid= th=3D262) (actual time=3D22850.38..22850.38 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70989.20= rows=3D8 width=3D262) (actual time=3D19246.44..22850.20 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70= 959.00 rows=3D8 width=3D200) (actual time=3D19246.27..22850.02 rows=3D1 loo= ps=3D1) -> Nested Loop (cost=3D11547.= 95..70928.80 rows=3D8 width=3D142) (actual time=3D19245.96..22849.71 rows= =3D1 loops=3D1) -> Hash Join (cost=3D11= 547.95..70892.21 rows=3D12 width=3D60) (actual time=3D19245.55..22849.28 ro= ws=3D1 loops=3D1) -> Hash Join (cos= t=3D11544.92..67740.21 rows=3D629765 width=3D36) (actual time=3D2630.57..22= 035.24 rows=3D629614 loops=3D1) -> Index Sca= n using txl_fgp_uid on transloading txl (cost=3D0.00..29898.75 rows=3D6297= 65 width=3D28) (actual time=3D0.40..6558.70 rows=3D629765 loops=3D1) -> Hash (co= st=3D9935.04..9935.04 rows=3D251153 width=3D8) (actual time=3D2628.13..2628= .13 rows=3D0 loops=3D1) -> Ind= ex Scan using stp_trp_uid on trip_stop stp (cost=3D0.00..9935.04 rows=3D25= 1153 width=3D8) (actual time=3D0.39..1952.20 rows=3D251153 loops=3D1) -> Hash (cost=3D3= .03..3.03 rows=3D1 width=3D24) (actual time=3D0.22..0.22 rows=3D0 loops=3D1) -> Index Sca= n using trip_pkey on trip trp (cost=3D0.00..3.03 rows=3D1 width=3D24) (act= ual time=3D0.21..0.21 rows=3D1 loops=3D1) -> Index Scan using frei= ght_group_pkey on freight_group fgp (cost=3D0.00..3.01 rows=3D1 width=3D82= ) (actual time=3D0.38..0.38 rows=3D1 loops=3D1) -> Index Scan using place_pkey= on place plc2 (cost=3D0.00..3.90 rows=3D1 width=3D58) (actual time=3D0.27= ..0.27 rows=3D1 loops=3D1) -> Index Scan using place_pkey on pl= ace plc1 (cost=3D0.00..3.90 rows=3D1 width=3D62) (actual time=3D0.14..0.14= rows=3D1 loops=3D1) -> Index Scan using power_unit_pkey on power_uni= t pwu (cost=3D0.00..20.71 rows=3D260 width=3D58) (actual time=3D0.24..0.92= rows=3D46 loops=3D1) -> Index Scan using trailer_pkey on trailer trl (cost= =3D0.00..3.97 rows=3D1 width=3D58) (actual time=3D0.31..0.32 rows=3D1 loops= =3D1) -> Index Scan using customer_order_pkey on customer_order or= d (cost=3D0.00..3.01 rows=3D1 width=3D4) (actual time=3D0.35..0.36 rows=3D= 1 loops=3D1) -> Index Scan using driver_pkey on driver dri (cost=3D0.00..3.84 = rows=3D1 width=3D166) (actual time=3D0.23..0.23 rows=3D1 loops=3D1) -> Index Scan using geo_location_pkey on geo_location loc1 (cost=3D0.00= ..3.68 rows=3D1 width=3D4) (actual time=3D0.29..0.30 rows=3D1 loops=3D1) Total runtime: 22853.82 msec EXPLAIN test=3D# \i report.sql=20 psql:report.sql:42: NOTICE: QUERY PLAN: Merge Join (cost=3D71101.73..71123.20 rows=3D8 width=3D552) (actual time= =3D23122.51..23122.53 rows=3D1 loops=3D1) -> Sort (cost=3D71101.73..71101.73 rows=3D8 width=3D494) (actual time= =3D23121.42..23121.43 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71101.62 rows=3D8 width=3D494) (= actual time=3D19490.96..23121.25 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71073.07 rows=3D8 width=3D= 490) (actual time=3D19490.60..23120.88 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71042.32 rows=3D8 wi= dth=3D432) (actual time=3D19490.26..23120.53 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..71012.12 rows= =3D8 width=3D374) (actual time=3D19490.06..23120.32 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70981.92= rows=3D8 width=3D312) (actual time=3D19489.73..23119.98 rows=3D1 loops=3D1) -> Nested Loop (cost=3D11547.95..70= 952.19 rows=3D8 width=3D146) (actual time=3D19489.47..23119.71 rows=3D1 loo= ps=3D1) -> Nested Loop (cost=3D11547.= 95..70928.80 rows=3D8 width=3D142) (actual time=3D19489.13..23119.36 rows= =3D1 loops=3D1) -> Hash Join (cost=3D11= 547.95..70892.21 rows=3D12 width=3D60) (actual time=3D19488.71..23118.92 ro= ws=3D1 loops=3D1) -> Hash Join (cos= t=3D11544.92..67740.21 rows=3D629765 width=3D36) (actual time=3D2604.06..22= 287.42 rows=3D629614 loops=3D1) -> Index Sca= n using txl_fgp_uid on transloading txl (cost=3D0.00..29898.75 rows=3D6297= 65 width=3D28) (actual time=3D0.39..6577.41 rows=3D629765 loops=3D1) -> Hash (co= st=3D9935.04..9935.04 rows=3D251153 width=3D8) (actual time=3D2601.67..2601= .67 rows=3D0 loops=3D1) -> Ind= ex Scan using stp_trp_uid on trip_stop stp (cost=3D0.00..9935.04 rows=3D25= 1153 width=3D8) (actual time=3D0.40..1937.33 rows=3D251153 loops=3D1) -> Hash (cost=3D3= .03..3.03 rows=3D1 width=3D24) (actual time=3D0.35..0.35 rows=3D0 loops=3D1) -> Index Sca= n using trip_pkey on trip trp (cost=3D0.00..3.03 rows=3D1 width=3D24) (act= ual time=3D0.34..0.34 rows=3D1 loops=3D1) -> Index Scan using frei= ght_group_pkey on freight_group fgp (cost=3D0.00..3.01 rows=3D1 width=3D82= ) (actual time=3D0.38..0.39 rows=3D1 loops=3D1) -> Index Scan using customer_o= rder_pkey on customer_order ord (cost=3D0.00..3.01 rows=3D1 width=3D4) (ac= tual time=3D0.31..0.32 rows=3D1 loops=3D1) -> Index Scan using driver_pkey on d= river dri (cost=3D0.00..3.84 rows=3D1 width=3D166) (actual time=3D0.22..0.= 23 rows=3D1 loops=3D1) -> Index Scan using place_pkey on place pl= c1 (cost=3D0.00..3.90 rows=3D1 width=3D62) (actual time=3D0.29..0.29 rows= =3D1 loops=3D1) -> Index Scan using place_pkey on place plc2 (c= ost=3D0.00..3.90 rows=3D1 width=3D58) (actual time=3D0.15..0.15 rows=3D1 lo= ops=3D1) -> Index Scan using trailer_pkey on trailer trl (cost= =3D0.00..3.97 rows=3D1 width=3D58) (actual time=3D0.29..0.29 rows=3D1 loops= =3D1) -> Index Scan using geo_location_pkey on geo_location loc1 = (cost=3D0.00..3.68 rows=3D1 width=3D4) (actual time=3D0.30..0.31 rows=3D1 l= oops=3D1) -> Index Scan using power_unit_pkey on power_unit pwu (cost=3D0.00..20.= 71 rows=3D260 width=3D58) (actual time=3D0.24..0.94 rows=3D46 loops=3D1) Total runtime: 23123.46 msec EXPLAIN test=3D# SET geqo to false; SET VARIABLEtest=3D# \i report.sql=20 psql:report.sql:42: NOTICE: QUERY PLAN: Nested Loop (cost=3D0.00..1404.93 rows=3D8 width=3D552) (actual time=3D1.6= 8..1.75 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..1381.55 rows=3D8 width=3D548) (actual time= =3D1.60..1.67 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..1351.35 rows=3D8 width=3D490) (actua= l time=3D1.51..1.58 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..1322.80 rows=3D8 width=3D486) = (actual time=3D1.44..1.50 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..1292.60 rows=3D8 width= =3D424) (actual time=3D1.36..1.41 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..1256.01 rows=3D12 = width=3D342) (actual time=3D1.27..1.32 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..18.07 rows= =3D5 width=3D314) (actual time=3D0.93..0.97 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..14.75 = rows=3D1 width=3D306) (actual time=3D0.52..0.55 rows=3D1 loops=3D1) -> Nested Loop (cost=3D0.00..= 10.90 rows=3D1 width=3D140) (actual time=3D0.47..0.49 rows=3D1 loops=3D1) -> Nested Loop (cost=3D= 0.00..7.01 rows=3D1 width=3D82) (actual time=3D0.43..0.45 rows=3D1 loops=3D= 1) -> Index Scan usin= g trip_pkey on trip trp (cost=3D0.00..3.03 rows=3D1 width=3D24) (actual ti= me=3D0.38..0.39 rows=3D1 loops=3D1) -> Index Scan usin= g trailer_pkey on trailer trl (cost=3D0.00..3.97 rows=3D1 width=3D58) (act= ual time=3D0.03..0.04 rows=3D1 loops=3D1) -> Index Scan using powe= r_unit_pkey on power_unit pwu (cost=3D0.00..3.88 rows=3D1 width=3D58) (act= ual time=3D0.02..0.03 rows=3D1 loops=3D1) -> Index Scan using driver_pke= y on driver dri (cost=3D0.00..3.84 rows=3D1 width=3D166) (actual time=3D0.= 03..0.03 rows=3D1 loops=3D1) -> Index Scan using stp_trp_uid on t= rip_stop stp (cost=3D0.00..3.17 rows=3D12 width=3D8) (actual time=3D0.38..= 0.38 rows=3D1 loops=3D1) -> Index Scan using txl_stp_uid on translo= ading txl (cost=3D0.00..253.05 rows=3D296 width=3D28) (actual time=3D0.31.= .0.31 rows=3D1 loops=3D1) -> Index Scan using freight_group_pkey on freigh= t_group fgp (cost=3D0.00..3.01 rows=3D1 width=3D82) (actual time=3D0.05..0= .05 rows=3D1 loops=3D1) -> Index Scan using place_pkey on place plc1 (cost=3D= 0.00..3.90 rows=3D1 width=3D62) (actual time=3D0.03..0.04 rows=3D1 loops=3D= 1) -> Index Scan using geo_location_pkey on geo_location loc1 = (cost=3D0.00..3.68 rows=3D1 width=3D4) (actual time=3D0.03..0.03 rows=3D1 l= oops=3D1) -> Index Scan using place_pkey on place plc2 (cost=3D0.00..3.90 r= ows=3D1 width=3D58) (actual time=3D0.04..0.04 rows=3D1 loops=3D1) -> Index Scan using customer_order_pkey on customer_order ord (cost=3D0= .00..3.01 rows=3D1 width=3D4) (actual time=3D0.04..0.04 rows=3D1 loops=3D1) Total runtime: 2.65 msec EXPLAIN test=3D#=20 ------=_NextPart_000_00BE_01C2916F.50DDB660--