Fix an incorrect error message related with fkeys between replicated dist tables (#5796)

This is not supported in enterprise too.
pull/5466/head
Onur Tirtir 2022-03-14 16:34:09 +03:00 committed by GitHub
parent b24e1dfccc
commit 216b9b5b7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -410,9 +410,8 @@ EnsureReferencingTableNotReplicated(Oid referencingTableId)
{
ereport(ERROR, (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
errmsg("cannot create foreign key constraint"),
errdetail("Citus Community Edition currently supports "
"foreign key constraints only for "
"\"citus.shard_replication_factor = 1\"."),
errdetail("Citus currently supports foreign key constraints "
"only for \"citus.shard_replication_factor = 1\"."),
errhint("Please change \"citus.shard_replication_factor to "
"1\". To learn more about using foreign keys with "
"other replication factors, please contact us at "