Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 079F1632B0A for ; Mon, 22 Mar 2010 19:32:35 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 48837-01 for ; Mon, 22 Mar 2010 22:32:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gy0-f174.google.com (mail-gy0-f174.google.com [209.85.160.174]) by mail.postgresql.org (Postfix) with ESMTP id 645FC632986 for ; Mon, 22 Mar 2010 19:32:24 -0300 (ADT) Received: by gyg8 with SMTP id 8so2892381gyg.19 for ; Mon, 22 Mar 2010 15:32:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=i4Q5IZIfxFnKlkYHxIYTHzT491v6pX5eGyOD/JaGqP0=; b=kXIJdEnAP4KORZwXbNIp60sXcbkHB+roWZHtF23H9+I9xUifmiVoB/g0K0CVy4vf5W nZS1MipIT6puHRAQupFgErFaWO7PDrkg2V52AFZOWQSeCY9q2O3z22N2N/eql3uENVQl AMn4SSmTrUVxcsFUXzeWfYhSoSSjR4POPu2Ec= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=r8xpNoKAW2RfAe1EhIbOHS3tE2kYzK8bAROvQXJgDLgmnpdl6B/edSBQ3YtQlo9iOR YATW8167diD/7gGXfVK6QJKYip8Sa7+z3OHZkxzExfAlkttLGVQZGBVGWFcGwg/Qrvs3 2uGSGDvpzHKiisQCyf1wv1LGUay2tBY39mGdY= MIME-Version: 1.0 Received: by 10.150.62.2 with SMTP id k2mr1399987yba.18.1269297143048; Mon, 22 Mar 2010 15:32:23 -0700 (PDT) In-Reply-To: <1CA7FF980DA3824F9A5C31532B7A40DCC4B87E10@LCXCLMB01.LCDS.LOC.GOV> References: <1CA7FF980DA3824F9A5C31532B7A40DCC4B87E10@LCXCLMB01.LCDS.LOC.GOV> Date: Mon, 22 Mar 2010 16:32:22 -0600 Message-ID: Subject: Re: Disparity between 8.1.18 and 8.2.14 performance wise From: Scott Marlowe To: "Dai, Tino" Cc: "pgsql-admin@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.473 tagged_above=-10 required=5 tests=AWL=0.126, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/158 X-Sequence-Number: 33957 On Mon, Mar 22, 2010 at 3:58 PM, Dai, Tino wrote: > After many days of googling and referring to different web pages about pe= rformance, I'm > turning to this list for help. We have a third party application that is = running on 8.1.11 and the > vendor has told us not to upgrade the database to 8.2. > > I have gone with the default values in postgresql.conf of 8.1.18 (the 8.1= .11 was unavailable > from the postgresql site so this is the closest one) and 8.2.14. I execut= e the same query with > EXPLAIN ANALYZE on 8.1.18 and the 8.2.14. The 8.1.18 comes back with abou= t 1000ms -1100ms > while the 8.2.14 comes back with 5ms - 6ms. That's a factor of about 200 times faster for 8.2. > I have tried up the work_mem, effective_cache_size, and the shared_buffer= s with no noticeable effect. > I'm not looking for a magic wand to allow 8.1.18 to become 8.2.14, but so= me performance gain would be > nice. Can any shed some light on this? Why? > =A0 =A0 =A0 =A0 =A0 =A0 =A0 Filter: (((section)::text =3D (section)::text= ) AND (ref_id =3D ref_id)) > =A0Total runtime: 6.905 ms Is this the result from 8.2? Cause it's not 6 seconds, it's 6 milliseconds= ..