Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C892564FFCC for ; Tue, 9 Sep 2008 17:27:04 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 81743-10 for ; Tue, 9 Sep 2008 17:27:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1DE4B64FD1E for ; Tue, 9 Sep 2008 17:27:01 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m89KQt76024766; Tue, 9 Sep 2008 16:26:55 -0400 (EDT) To: Robert Treat cc: pgsql-general@postgresql.org, "Amber" , "Andrew Sullivan" Subject: Re: PostgreSQL TPC-H test result? In-reply-to: <200809091129.54467.robert@omniti.com> References: <20080909123947.GA59092@commandprompt.com> <200809091129.54467.robert@omniti.com> Comments: In-reply-to Robert Treat message dated "Tue, 09 Sep 2008 11:29:54 -0400" Date: Tue, 09 Sep 2008 16:26:55 -0400 Message-ID: <24765.1220992015@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/353 X-Sequence-Number: 137360 Robert Treat writes: > http://www.it.iitb.ac.in/~chetanv/personal/acads/db/report_html/node10.html. > It isn't terribly informative, but it doesindicate one thing, someone else > was able to run query #6 correctly, while the above site claims it returns an > error. Now when I look at query#6 from that site, I notice it shows the > following syntax: > interval '1' year. > when I saw that, it jumped out at me as something that could be an issue, and > it is: Yeah. This is SQL spec syntax, but it's not fully implemented in Postgres: the grammar supports it but the info doesn't get propagated to interval_in, and interval_in wouldn't know what to do even if it did have the information that there was a YEAR qualifier after the literal. That's probably not good because it *looks* like we support the syntax, but in fact produce non-spec-compliant results. I think it might be better if we threw an error. Or someone could try to make it work, but given that no one has taken the slightest interest since Tom Lockhart left the project, I wouldn't hold my breath waiting for that. regards, tom lane