Cannot create reference partition table
Open
- 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
Assessment
This issue has not been assessed yet.