X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1826F530EC for ; Mon, 15 Aug 2005 04:25:43 -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 14732-02 for ; Mon, 15 Aug 2005 07:25:40 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id DA428530E0 for ; Mon, 15 Aug 2005 04:25:38 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 0BBDC416B0B; Mon, 15 Aug 2005 08:25:34 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 3986015ED9; Mon, 15 Aug 2005 08:25:31 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17937-04; Mon, 15 Aug 2005 08:25:27 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 9B6A115EDA; Mon, 15 Aug 2005 08:25:27 +0100 (BST) Message-ID: <43004367.8000501@archonet.com> Date: Mon, 15 Aug 2005 08:25:27 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Lucas Grijander Cc: pgsql-sql@postgresql.org Subject: Re: Select problems References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.057 required=5 tests=[AWL=0.007, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/91 X-Sequence-Number: 22319 Lucas Grijander wrote: > Hi: > > I've just migrated from Linux/PostgreSQL 7.2 to > Windows/PostgreSQL 8.0.3. I have a large view. When I make: > > "Select ..... WHERE mydate = 'anydate'" > the view lasts 19 seconds to complete. But, when I make: > "Select ..... WHERE mydate >= 'anydate'" > the view lasts 7 minutes. And what are teh view definitions and the output of EXPLAIN ANALYSE? -- Richard Huxton Archonet Ltd