adding column storage table does not support partition detection

Signed-off-by: yujiang <wutheringwind@163.com>
This commit is contained in:
yujiang
2020-08-03 15:25:28 +08:00
parent bc7e4b2d87
commit a245ae09b5
3 changed files with 38 additions and 0 deletions

View File

@ -680,6 +680,13 @@ static void CheckCStoreUnsupportedFeature(CreateStmt* stmt)
errdetail("cstore/timeseries don't support relation defination with inheritance.")));
}
if (stmt->partTableState && stmt->partTableState->intervalPartDef) {
ereport(ERROR,
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("Unsupport feature"),
errdetail("cstore/timeseries don't support interval partition type.")));
}
/* Check constraints */
ListCell* lc = NULL;
foreach (lc, stmt->tableEltsDup) {

View File

@ -181,6 +181,21 @@ select relname, parttype, partstrategy, boundaries from pg_partition
--clean up
drop table interval_normal_date;
--
---- the cstore table does not support interval partition;
--
create table partiton_table_001(
COL_1 smallint,
COL_2 char(30),
COL_3 int,
COL_4 date not null
)with (orientation = column)
PARTITION BY RANGE (COL_4)
INTERVAL ('1 month')
(
PARTITION partiton_table_001_p1 VALUES LESS THAN ('2020-03-01')
);
--
---- tablespace
--

View File

@ -388,6 +388,22 @@ select relname, parttype, partstrategy, boundaries from pg_partition
--clean up
drop table interval_normal_date;
--
---- the cstore table does not support interval partition;
--
create table partiton_table_001(
COL_1 smallint,
COL_2 char(30),
COL_3 int,
COL_4 date not null
)with (orientation = column)
PARTITION BY RANGE (COL_4)
INTERVAL ('1 month')
(
PARTITION partiton_table_001_p1 VALUES LESS THAN ('2020-03-01')
);
ERROR: Unsupport feature
DETAIL: cstore/timeseries don't support interval partition type.
--
---- tablespace
--
--date