From: Pavan Deolasee Date: Thu, 6 Apr 2017 07:29:39 +0000 (+0530) Subject: Remove an obselete code which was stopping constraints to be modified at the X-Git-Tag: XL_10_R1BETA1~323 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=65125d6fe162594f92b0415201a45656ee8b102f;p=postgres-xl.git Remove an obselete code which was stopping constraints to be modified at the coordinator. It was causing regression failures and making this change while fixes the failure, it does not cause any new failures either. So it seems like a good change. We will revisit if something gets reported because of the change. --- diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index a523113b9f..a7496ddf11 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -6888,15 +6888,6 @@ ATExecAlterConstraint(Relation rel, AlterTableCmd *cmd, bool found = false; ObjectAddress address; -#ifdef XCP - /* - * Do not validate distributed relations on Coordinator, let Datanode do - * that when executing the ALTER TABLE statement. - */ - if (IS_PGXC_COORDINATOR && rel->rd_locator_info) - return InvalidObjectAddress; -#endif - Assert(IsA(cmd->def, Constraint)); cmdcon = (Constraint *) cmd->def;