From: | Victor Muntes Mutero <vmuntes(at)ac(dot)upc(dot)es> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Cc: | pgsql-general(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org |
Subject: | TPCH questions |
Date: | 2001-02-15 08:48:17 |
Message-ID: | 3A8B97D1.41C6@ac.upc.es |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-sql |
Hello,
we have got a problem when executing some queries of tpch benchmark on
PostgreSQL.
For instance, the postgres parser do not accept the syntax of the query
number 9:
select nation2 , o_year, sum(amount) as sum_profit
from
(
select
n_name as nation2,
extract(year from o_orderdate) as o_year,
l_extendedprice * (1 - l_discount) -
ps_supplycost * l_quantity as
amount
from
part,
supplier,
lineitem,
partsupp,
orders,
nation
where
s_suppkey = l_suppkey
and ps_suppkey = l_suppkey
and ps_partkey = l_partkey
and p_partkey = l_partkey
and o_orderkey = l_orderkey
and s_nationkey = n_nationkey
and p_name like '%green%'
) as profit
group by
nation2,
o_year
order by
nation2,
o_year desc;
Postgres returns the following message:
ERROR: parser: parse error at or near "select"
We have tried to solve the problem and we have seen that simplifying,
the real problem shows up when trying to solve a query like this one:
select * from (select * from supplier); (for example)
What's the problem?
We've heard about some variants of TPCH queries, do you know if there is
any of these which could solve our problem?
Thanks in advance,
Victor Muntes
Pep Aguilar
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Arthur Silve | 2001-02-15 09:10:52 | what means "INSERT xxx yyy" ? |
Previous Message | jeff kuo | 2001-02-15 04:32:49 | variable question with postgresql |
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Arthur Silve | 2001-02-15 09:10:52 | what means "INSERT xxx yyy" ? |
Previous Message | Enrico Mangano | 2001-02-15 08:39:17 | postgres length limitation query |
From | Date | Subject | |
---|---|---|---|
Next Message | Jean-Arthur Silve | 2001-02-15 09:10:52 | what means "INSERT xxx yyy" ? |
Previous Message | Tom Lane | 2001-02-15 00:14:27 | Re: cannot create sequence |