Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6146C9FA0EC for ; Tue, 12 Jun 2007 14:38:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 51674-07 for ; Tue, 12 Jun 2007 14:38:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id B02ED9FA141 for ; Tue, 12 Jun 2007 14:38:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5CHbntM019137; Tue, 12 Jun 2007 13:37:49 -0400 (EDT) To: Christo Du Preez cc: pgsql-performance@postgresql.org Subject: Re: test / live environment, major performance difference In-reply-to: <466ED0E4.3040803@mecola.com> References: <466EA078.20601@mecola.com> <8385.1181664586@sss.pgh.pa.us> <466ED0E4.3040803@mecola.com> Comments: In-reply-to Christo Du Preez message dated "Tue, 12 Jun 2007 18:59:16 +0200" Date: Tue, 12 Jun 2007 13:37:49 -0400 Message-ID: <19136.1181669869@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/220 X-Sequence-Number: 25253 Christo Du Preez writes: > Yes, I have just about tried every combination of vacuum on the > database. Just to make 100% sure. Well, there's something mighty wacko about that rowcount estimate; even if you didn't have stats, the estimate for a simple equality constraint oughtn't be 100% match. What do you get from SELECT * FROM pg_stats WHERE tablename = 'layertype' on both systems? regards, tom lane