扩容限制
扩容的限制¶
seabox扩容功能还存在一些限制。
临时表限制¶
当某个seabox会话同时满足以下条件时:
-
扩容前已经开启会话,扩容完成后,会话仍未关闭
-
创建过临时表,或间接创建过临时表(如执行过copy table from操作)
那么,在这个会话中继续执行分布式操作,都会报错并提醒重开会话。过程如下:
-- 执行copy
seaboxsql=# COPY part FROM 'fdw://tpch_load/10s/data/part.tbl';
COPY 2000000
-- 不关闭会话,执行并完成扩容
-- 继续执行分布式操作,则失败:
seaboxsql=# create table t(c int);
ERROR: During the current session, cluster expansion and temporary table creation are all performed
HINT: Close the current session and start a new one