Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 841399FA162 for ; Wed, 13 Dec 2006 01:53:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 93332-04 for ; Wed, 13 Dec 2006 01:53:51 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail.e-intelligence.com (yogurt.e-intelligence.com [196.211.21.66]) by postgresql.org (Postfix) with ESMTP id A59949F9F08 for ; Wed, 13 Dec 2006 01:53:51 -0400 (AST) Received: from www.raev1.com (unknown [192.168.2.61]) by kingtut.e-intelligence.com (Postfix) with ESMTP id BA1FA5F172 for ; Wed, 13 Dec 2006 05:54:46 +0000 (UTC) Subject: Re: TPCH Benchmark query result invalid From: Cronje Fourie To: pgsql-sql@postgresql.org In-Reply-To: <457EC53B.2070600@archonet.com> References: <1165932562.10968.1.camel@localhost> <457EC53B.2070600@archonet.com> Content-Type: text/plain Date: Wed, 13 Dec 2006 07:53:32 +0200 Message-Id: <1165989212.5996.0.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 Content-Transfer-Encoding: 7bit X-EI-MailScanner-Information: Please contact the ISP for more information X-EI-MailScanner: Found to be clean X-EI-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=0, required 6.5) X-MailScanner-From: cfourie@e-intelligence.com X-MailScanner-To: pgsql-sql@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/99 X-Sequence-Number: 27055 Thanks guys. Richard your fix didn't seem to work. But it's got me in the right direction :) Time to RTFM ;) Cronje On Tue, 2006-12-12 at 15:05 +0000, Richard Huxton wrote: > Cronje Fourie wrote: > > When running the following query against a TPCH db I get 0 results > > returned > > > and o_orderdate < date '1993-07-01' + interval '3' month > > That's the problem line. > > richardh=# SELECT interval '3' month; > interval > ---------- > 00:00:00 > (1 row) > > It's got a zero-length date-range it's comparing against. If you have > interval '3 months' that should work, but I'm afraid I haven't got time > to check against the specs to see what the correct format should be. > > -- > Richard Huxton > Archonet Ltd > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support.