X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 0BF185E3639 for ; Fri, 20 Aug 2004 13:19:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80041-04 for ; Fri, 20 Aug 2004 16:19:29 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 675385E3632 for ; Fri, 20 Aug 2004 13:19:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i7KGJMiC022027; Fri, 20 Aug 2004 12:19:22 -0400 (EDT) To: Gaetano Mendola Cc: Rod Taylor , pgsql-performance@postgresql.org Subject: Re: using an index worst performances In-reply-to: <41261E41.3080204@bigfoot.com> References: <4124ECF3.6040901@archonet.com> <412505F6.6080000@bigfoot.com> <4125565D.3060008@familyhealth.com.au> <4125C657.7000702@bigfoot.com> <1093006549.75942.61.camel@jester> <41261E41.3080204@bigfoot.com> Comments: In-reply-to Gaetano Mendola message dated "Fri, 20 Aug 2004 17:52:33 +0200" Date: Fri, 20 Aug 2004 12:19:22 -0400 Message-ID: <22026.1093018762@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/303 X-Sequence-Number: 7939 Gaetano Mendola writes: > Using a prepared query: > Without index and default stat 10 : 1.12 ms > Without index and default stat 1000 : 1.25 ms > With index and default stat 10: 1.35 ms > With index and default stat 1000: 1.6 ms Could we see EXPLAIN ANALYZE EXECUTE output for each case? regards, tom lane