From: Pavan Deolasee Date: Wed, 19 Sep 2018 06:38:44 +0000 (+0530) Subject: Correct error message to use word "distributed" instead of "partitioned". X-Git-Tag: XL_10_R1~40 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=305ad92ae05a7a367501be3f68cde9ff9f827622;p=postgres-xl.git Correct error message to use word "distributed" instead of "partitioned". Per report by Pallavi Sontakke --- diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index d20531633d..cf537018c1 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -591,7 +591,7 @@ DefineIndex(Oid relationId, { ereport(WARNING, (errcode(ERRCODE_INVALID_COLUMN_REFERENCE), - errmsg("Unique index of partitioned table must contain the hash/modulo distribution column."))); + errmsg("Unique index of distributed table must contain the hash/modulo distribution column."))); /* create index still, just that it won't be unique */ stmt->unique = false; stmt->isconstraint = false; @@ -599,7 +599,7 @@ DefineIndex(Oid relationId, else ereport(ERROR, (errcode(ERRCODE_INVALID_COLUMN_REFERENCE), - errmsg("Unique index of partitioned table must contain the hash/modulo distribution column."))); + errmsg("Unique index of distributed table must contain the hash/modulo distribution column."))); } } #endif diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 8da1b84b30..a898db50e0 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -2418,12 +2418,12 @@ transformIndexConstraint(Constraint *constraint, CreateStmtContext *cxt) if (loose_constraints && cxt->isalter && index->unique) ereport(WARNING, (errcode(ERRCODE_INVALID_COLUMN_REFERENCE), - errmsg("Unique index of partitioned table must contain the" + errmsg("Unique index of distributed table must contain the" " hash distribution column."))); else ereport(ERROR, (errcode(ERRCODE_INVALID_COLUMN_REFERENCE), - errmsg("Unique index of partitioned table must contain the" + errmsg("Unique index of distributed table must contain the" " hash distribution column."))); } else