summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorMichael P2011-12-08 04:50:25 +0000
committerMichael P2011-12-08 04:50:25 +0000
commit2a406e56dea3e750e74cc38115e83e30217b4822 (patch)
tree42b27adb393ac484e625630149bbd16eb11e68ee /src/bin
parent99407dfd856b4250593379a6764f9bbd61ae03f7 (diff)
Simplify node DDL grammar and supress slave management part
New grammar uses WITH clause of CREATE TABLE in this manner: CREATE/ALTER NODE nodename WITH ( [ TYPE = ('coordinator' | 'datanode'),] [ HOST = 'string',] [ PORT = portnum,] [ PRIMARY,] [ PREFERRED ]); This applies to CREATE/ALTER NODE. Grammar simplification results in the deletion in related_to column of pgxc_node catalog. Documentation is updated in consequence. This commit solves also an issue with variable names sharing same format between GTM and XC nodes.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/initdb/initdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 2b8f691b37..dd6a2bb325 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -1496,7 +1496,7 @@ setup_nodeself(void)
PG_CMD_OPEN;
- PG_CMD_PRINTF1("CREATE NODE %s WITH (COORDINATOR MASTER);\n",
+ PG_CMD_PRINTF1("CREATE NODE %s WITH (type = 'coordinator');\n",
nodename);
PG_CMD_CLOSE;