X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AB89A329F4D for ; Wed, 13 Oct 2004 16:03:19 +0100 (BST) 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 15894-07 for ; Wed, 13 Oct 2004 15:03:15 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 39B34329F3E for ; Wed, 13 Oct 2004 16:03:14 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i9DF3DDD014685; Wed, 13 Oct 2004 11:03:13 -0400 (EDT) To: Robin Ericsson Cc: pgsql-performance@postgresql.org Subject: Re: query problem In-reply-to: <1097659271.24018.68.camel@pylver.localhost.nu.> References: <1097659271.24018.68.camel@pylver.localhost.nu.> Comments: In-reply-to Robin Ericsson message dated "Wed, 13 Oct 2004 11:21:11 +0200" Date: Wed, 13 Oct 2004 11:03:13 -0400 Message-ID: <14684.1097679793@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/174 X-Sequence-Number: 8650 Robin Ericsson writes: > I sent this to general earlier but I was redirected to performance. Actually, I think I suggested that you consult the pgsql-performance archives, where this type of problem has been hashed out before. See for instance this thread: http://archives.postgresql.org/pgsql-performance/2004-07/msg00169.php particularly http://archives.postgresql.org/pgsql-performance/2004-07/msg00175.php http://archives.postgresql.org/pgsql-performance/2004-07/msg00184.php http://archives.postgresql.org/pgsql-performance/2004-07/msg00185.php which show three different ways of getting the planner to do something sane with an index range bound like "now() - interval". regards, tom lane