Hello. Sorry my English.
I am testing citus. I using next configuration:
1 master, 16 GB memory
4 workers, 16 GB memory,
"PostgreSQL 9.5.1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4, 64-bit"
On the master, I have I generated the data, using TPCH test. The data has 50 GB.
Each table are distributed on 10 tables.
so, most queries work well.
But, next query has the error:
ERROR: out of memory
DETAIL: Cannot enlarge string buffer containing 1073741822 bytes by 1 more bytes.
********** Error **********
ERROR: out of memory
SQL state: 54000
Detail: Cannot enlarge string buffer containing 1073741822 bytes by 1 more bytes.
I changed parameters on master and an workers.
citus.binary_worker_copy_format = true
citus.binary_master_copy_format = true
but, the error keeps.
The query is:
select
o_year,
sum(case
when nation = 'JAPAN' then volume
else 0
end) / sum(volume) as mkt_share
from
(
select
extract(year from o_orderdate) as o_year,
l_extendedprice * (1 - l_discount) as volume,
n2.n_name as nation
from
part,
supplier,
lineitem,
orders,
customer,
nation n1,
nation n2,
region
where
p_partkey = l_partkey
and s_suppkey = l_suppkey
and l_orderkey = o_orderkey
and o_custkey = c_custkey
and c_nationkey = n1.n_nationkey
and n1.n_regionkey = r_regionkey
and r_name = 'ASIA'
and s_nationkey = n2.n_nationkey
and o_orderdate between date '1995-01-01' and date '1996-12-31'
and p_type = 'PROMO PLATED TIN'
) as all_nations
group by
o_year
order by
o_year;
What can I to change to has not this error?