Re: TPCH Benchmark query result invalid - Mailing list pgsql-sql

From Richard Huxton
Subject Re: TPCH Benchmark query result invalid
Date
Msg-id 457EC53B.2070600@archonet.com
Whole thread Raw
In response to TPCH Benchmark query result invalid  (Cronje Fourie <cfourie@e-intelligence.com>)
Responses Re: TPCH Benchmark query result invalid  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: TPCH Benchmark query result invalid  (Cronje Fourie <cfourie@e-intelligence.com>)
List pgsql-sql
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


pgsql-sql by date:

Previous
From: Cronje Fourie
Date:
Subject: TPCH Benchmark query result invalid
Next
From: Tom Lane
Date:
Subject: Re: TPCH Benchmark query result invalid