Correct error message to use word "distributed" instead of "partitioned".
authorPavan Deolasee <[email protected]>
Wed, 19 Sep 2018 06:38:44 +0000 (12:08 +0530)
committerPavan Deolasee <[email protected]>
Wed, 19 Sep 2018 06:38:44 +0000 (12:08 +0530)
Per report by Pallavi Sontakke

src/backend/commands/indexcmds.c
src/backend/parser/parse_utilcmd.c

index d20531633db15fb23d14bb89e191bc6addd9b5dc..cf537018c11bc567958578a02d6e4e71991e40f4 100644 (file)
@@ -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
index 8da1b84b30c26f6c70cd386ad82225f1a715dc7b..a898db50e0ed5e0efd8a2f42883551acf3b44d8b 100644 (file)
@@ -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