citusdata / citusdata/citus

Cannot create reference partition table

Open
#4,177 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
12.8k
Forks
794
Avg merge
2d 14h
Merged PRs (30d)
31

Description

error:
distributing partitioned tables in only supported for hash-distributed tables

Inside create_distributed_table.c function EnsureRelationCanBeDistributed checks if table is partition if so it only checks if create command is given DISTRIBUTE_BY_HASH

if (distributionMethod != DISTRIBUTE_BY_HASH)
{
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("distributing partitioned tables in only supported "
"for hash-distributed tables")));
}

It should also check if called function is create_reference table and distribution is DISTRIBUTE_BY_NONE

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.