Re: TPCH Benchmark query result invalid

From: Richard Huxton <dev(at)archonet(dot)com>
To: Cronje Fourie <cfourie(at)e-intelligence(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: TPCH Benchmark query result invalid
Date: 2006-12-12 15:05:31
Message-ID: 457EC53B.2070600@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2006-12-12 16:23:15 Re: TPCH Benchmark query result invalid
Previous Message Cronje Fourie 2006-12-12 14:09:22 TPCH Benchmark query result invalid