mirror of https://github.com/citusdata/citus.git
Error out for CLUSTER commands on columnar tables
parent
5adab2a3ac
commit
b6b969971a
|
@ -707,7 +707,8 @@ columnar_relation_copy_for_cluster(Relation OldHeap, Relation NewHeap,
|
||||||
if (OldIndex != NULL || use_sort)
|
if (OldIndex != NULL || use_sort)
|
||||||
{
|
{
|
||||||
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
errmsg("indexes not supported for columnar tables")));
|
errmsg("clustering columnar tables using indexes is "
|
||||||
|
"not supported")));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -192,6 +192,12 @@ ERROR: duplicate key value violates unique constraint "columnar_table_pkey"
|
||||||
DETAIL: Key (a)=(16999) already exists.
|
DETAIL: Key (a)=(16999) already exists.
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
VACUUM FULL columnar_table;
|
VACUUM FULL columnar_table;
|
||||||
|
-- show that we don't support clustering columnar tables using indexes
|
||||||
|
CLUSTER columnar_table USING columnar_table_pkey;
|
||||||
|
ERROR: clustering columnar tables using indexes is not supported
|
||||||
|
ALTER TABLE columnar_table CLUSTER ON columnar_table_pkey;
|
||||||
|
CLUSTER columnar_table;
|
||||||
|
ERROR: clustering columnar tables using indexes is not supported
|
||||||
-- should error even after vacuum
|
-- should error even after vacuum
|
||||||
INSERT INTO columnar_table VALUES (16999);
|
INSERT INTO columnar_table VALUES (16999);
|
||||||
ERROR: duplicate key value violates unique constraint "columnar_table_pkey"
|
ERROR: duplicate key value violates unique constraint "columnar_table_pkey"
|
||||||
|
|
|
@ -124,6 +124,13 @@ BEGIN;
|
||||||
ROLLBACK;
|
ROLLBACK;
|
||||||
|
|
||||||
VACUUM FULL columnar_table;
|
VACUUM FULL columnar_table;
|
||||||
|
|
||||||
|
-- show that we don't support clustering columnar tables using indexes
|
||||||
|
CLUSTER columnar_table USING columnar_table_pkey;
|
||||||
|
|
||||||
|
ALTER TABLE columnar_table CLUSTER ON columnar_table_pkey;
|
||||||
|
CLUSTER columnar_table;
|
||||||
|
|
||||||
-- should error even after vacuum
|
-- should error even after vacuum
|
||||||
INSERT INTO columnar_table VALUES (16999);
|
INSERT INTO columnar_table VALUES (16999);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue