From: Richard Huxton <dev@archonet.com>
To: Cronje Fourie <cfourie@e-intelligence.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: TPCH Benchmark query result invalid
Date: Tue, 12 Dec 2006 15:05:31 +0000
Message-ID: <457EC53B.2070600@archonet.com> (raw)
In-Reply-To: <1165932562.10968.1.camel@localhost>
References: <1165932562.10968.1.camel@localhost>
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
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: dev@archonet.com, cfourie@e-intelligence.com
Subject: Re: TPCH Benchmark query result invalid
In-Reply-To: <457EC53B.2070600@archonet.com>
* 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