mirror of https://github.com/citusdata/citus.git
Co-authored-by: Jeff Davis <jefdavi@microsoft.com>pull/4506/head
parent
b49beda4c3
commit
ec319faa43
|
@ -557,6 +557,12 @@ cstore_relation_set_new_filenode(Relation rel,
|
||||||
TransactionId *freezeXid,
|
TransactionId *freezeXid,
|
||||||
MultiXactId *minmulti)
|
MultiXactId *minmulti)
|
||||||
{
|
{
|
||||||
|
if (persistence != RELPERSISTENCE_PERMANENT)
|
||||||
|
{
|
||||||
|
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
|
||||||
|
errmsg("only permanent columnar tables are supported")));
|
||||||
|
}
|
||||||
|
|
||||||
Oid oldRelfilenode = rel->rd_node.relNode;
|
Oid oldRelfilenode = rel->rd_node.relNode;
|
||||||
|
|
||||||
MarkRelfilenodeDropped(oldRelfilenode, GetCurrentSubTransactionId());
|
MarkRelfilenodeDropped(oldRelfilenode, GetCurrentSubTransactionId());
|
||||||
|
|
|
@ -21,6 +21,12 @@ SELECT count(*) FROM contestant;
|
||||||
0
|
0
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
|
-- Should fail: unlogged tables not supported
|
||||||
|
CREATE UNLOGGED TABLE columnar_unlogged(i int) USING columnar;
|
||||||
|
ERROR: only permanent columnar tables are supported
|
||||||
|
-- Should fail: temporary tables not supported
|
||||||
|
CREATE TEMPORARY TABLE columnar_temp(i int) USING columnar;
|
||||||
|
ERROR: only permanent columnar tables are supported
|
||||||
--
|
--
|
||||||
-- Utility functions to be used throughout tests
|
-- Utility functions to be used throughout tests
|
||||||
--
|
--
|
||||||
|
|
|
@ -21,6 +21,12 @@ CREATE TABLE contestant_compressed (handle TEXT, birthdate DATE, rating INT,
|
||||||
ANALYZE contestant;
|
ANALYZE contestant;
|
||||||
SELECT count(*) FROM contestant;
|
SELECT count(*) FROM contestant;
|
||||||
|
|
||||||
|
-- Should fail: unlogged tables not supported
|
||||||
|
CREATE UNLOGGED TABLE columnar_unlogged(i int) USING columnar;
|
||||||
|
|
||||||
|
-- Should fail: temporary tables not supported
|
||||||
|
CREATE TEMPORARY TABLE columnar_temp(i int) USING columnar;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Utility functions to be used throughout tests
|
-- Utility functions to be used throughout tests
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in New Issue