在postgres-xc集群数据库中创建节点时出错

时间:2013-12-03 09:07:49

标签: postgresql postgres-xc

我曾尝试创建postgres-xc群集数据库。所以我按照他们的文档做了(http://postgres-xc.sourceforge.net/docs/1_1/install-short.html

遵循该文档程序后,我无法创建节点。我收到以下错误:

  

错误:“NODE”或其附近的语法错误

运行以下命令时

/usr/local/pgsql/bin/psql -c "CREATE NODE datanode1 WITH (TYPE = 'datanode', PORT = 15432)" postgres

任何人都可以帮我解决这个问题。

1 个答案:

答案 0 :(得分:1)

我怀疑a_horse_with_no_name是对的。 postgres-xc和postgresql是不同的代码库,你不能在PostgreSQL上运行CREATE NODE并让它工作。您必须运行Postgres-XC。

要找到答案,请从psql运行SELECT version()

要安装Postgres-XC,第一步是从包或源(通过编译)实际安装Postgres-XC软件。

相关问题