From: Cronje Fourie <cfourie@e-intelligence.com>
To: pgsql-sql@postgresql.org
Subject: Re: TPCH Benchmark query result invalid
Date: Wed, 13 Dec 2006 07:53:32 +0200
Message-ID: <1165989212.5996.0.camel@localhost> (raw)
In-Reply-To: <457EC53B.2070600@archonet.com>
References: <1165932562.10968.1.camel@localhost>
<457EC53B.2070600@archonet.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: cfourie@e-intelligence.com
Subject: Re: TPCH Benchmark query result invalid
In-Reply-To: <1165989212.5996.0.camel@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox