diff options
| author | Michael P | 2011-12-08 04:50:25 +0000 |
|---|---|---|
| committer | Michael P | 2011-12-08 04:50:25 +0000 |
| commit | 2a406e56dea3e750e74cc38115e83e30217b4822 (patch) | |
| tree | 42b27adb393ac484e625630149bbd16eb11e68ee /src/bin | |
| parent | 99407dfd856b4250593379a6764f9bbd61ae03f7 (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.c | 2 |
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; |
