X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C94609DC875 for ; Fri, 3 Mar 2006 15:40:53 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40942-08 for ; Fri, 3 Mar 2006 15:40:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from r1.mycybernet.net (r1.mycybernet.net [209.5.206.8]) by postgresql.org (Postfix) with ESMTP id 73FD89DCD94 for ; Fri, 3 Mar 2006 15:40:47 -0400 (AST) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227]:46085 helo=phlogiston.dydns.org) by r1.mycybernet.net with esmtp (Exim 4.50 (FreeBSD)) id 1FFG8t-000Fyo-7U for pgsql-sql@postgresql.org; Fri, 03 Mar 2006 14:40:47 -0500 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 5CAC54040; Fri, 3 Mar 2006 14:40:39 -0500 (EST) Date: Fri, 3 Mar 2006 14:40:39 -0500 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Sequential scan where Index scan expected (update) Message-ID: <20060303194039.GA12015@phlogiston.dyndns.org> References: <244004377.20060302124132@isb.com.pl> <2873.1141312882@sss.pgh.pa.us> <4407F031.6050706@obviously.com> <20060303124712.GC7057@phlogiston.dyndns.org> <44089A9B.2030509@obviously.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44089A9B.2030509@obviously.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.082 required=5 tests=[AWL=0.082] X-Spam-Score: 0.082 X-Spam-Level: X-Archive-Number: 200603/80 X-Sequence-Number: 24426 On Fri, Mar 03, 2006 at 11:35:55AM -0800, Bryce Nesbitt wrote: > Yup that's it. But this project uses (ugh) Hibernate. I can't change > it. I may have to change > from BIGINT primary keys to INT. > Well, you could upgrade from 7.4. > Also: > Any hints on the table statistics? I turn them on, in a session, as > user postgres, but get nothing: You have to SIGHUP to get those to take effect, IIRC. A -- Andrew Sullivan | ajs@crankycanuck.ca Information security isn't a technological problem. It's an economics problem. --Bruce Schneier