Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A28191337BD2 for ; Mon, 9 May 2011 16:08:30 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 52905-02 for ; Mon, 9 May 2011 19:08:23 +0000 (UTC) Received: from mx1.hub.org (mx1.hub.org [200.46.208.106]) by mail.postgresql.org (Postfix) with ESMTP id B260F1337C3C for ; Mon, 9 May 2011 15:50:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mx1.hub.org (Postfix) with ESMTP id 53DBC326149F for ; Mon, 9 May 2011 18:49:53 +0000 (UTC) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p49ImbLP002758; Mon, 9 May 2011 14:48:37 -0400 (EDT) To: Marcus Engene cc: pgsql-performance@postgresql.org Subject: Re: wildcard makes seq scan on prod db but not in test In-reply-to: <4DC82D28.7020105@engene.se> References: <4DC82D28.7020105@engene.se> Comments: In-reply-to Marcus Engene message dated "Mon, 09 May 2011 20:06:32 +0200" Date: Mon, 09 May 2011 14:48:36 -0400 Message-ID: <2757.1304966916@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201105/79 X-Sequence-Number: 43588 Marcus Engene writes: > There are about 2M rows on bonddump and 4M rows on bond90. > bonddump is on a 8MB RAM machine, bond90 is on a 72MB RAM machine. > The table is analyzed properly both places. I'll bet one database was initialized in C locale and the other not. regards, tom lane