Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id AB99D9FA0EF for ; Tue, 12 Dec 2006 12:23:33 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 18649-05 for ; Tue, 12 Dec 2006 12:23:24 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 6C6B09F931E for ; Tue, 12 Dec 2006 12:23:24 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id kBCGNGWq003954; Tue, 12 Dec 2006 11:23:16 -0500 (EST) To: Richard Huxton cc: Cronje Fourie , pgsql-sql@postgresql.org Subject: Re: TPCH Benchmark query result invalid In-reply-to: <457EC53B.2070600@archonet.com> References: <1165932562.10968.1.camel@localhost> <457EC53B.2070600@archonet.com> Comments: In-reply-to Richard Huxton message dated "Tue, 12 Dec 2006 15:05:31 +0000" Date: Tue, 12 Dec 2006 11:23:15 -0500 Message-ID: <3953.1165940595@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/92 X-Sequence-Number: 27048 Richard Huxton writes: > 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. I think this syntax is supposed to work according to the SQL spec. Tom Lockhart was fooling around with making that stuff spec-compliant before he left the project, and no one has bothered to pick it up since :-(. Perhaps everyone thinks the spec syntax for interval constants is so bizarre and non-orthogonal it's not worth dealing with ... regards, tom lane