summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavan Deolasee2015-07-28 07:55:46 +0000
committerPavan Deolasee2015-07-28 07:55:46 +0000
commit104fbdfd1d3a252f896b1d4426718f9243adfa6f (patch)
tree973bfe482d4c7797f4974947a9192449dc902995
parent9f745197c9ac044248891f0f99942884b01939ee (diff)
A small correction to the short installation guide.
The pooler_port GUC needs to be different on the coordinator and datanodes when installing on a single system. Finally pgxc_pool_reload() must be executed directly on each datanode. Patch by Mark Wong
-rw-r--r--doc/src/sgml/installation.sgml8
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml
index 6dae7edf7b..73baef7356 100644
--- a/doc/src/sgml/installation.sgml
+++ b/doc/src/sgml/installation.sgml
@@ -55,9 +55,9 @@ su - postgres
/usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data_datanode2 --nodename datanode2
/usr/local/pgsql/bin/initgtm -D /usr/local/pgsql/data_gtm -Z gtm
/usr/local/pgsql/bin/gtm -D /usr/local/pgsql/data_gtm >logfile 2>&1 &
-/usr/local/pgsql/bin/postgres --datanode -p 15432 -D /usr/local/pgsql/data_datanode1 >logfile 2>&1 &
-/usr/local/pgsql/bin/postgres --datanode -p 15433 -D /usr/local/pgsql/data_datanode2 >logfile 2>&1 &
-/usr/local/pgsql/bin/postgres --coordinator -D /usr/local/pgsql/data_coord1 >logfile 2>&1 &
+/usr/local/pgsql/bin/postgres --datanode -p 15432 -c pooler_port=40101 -D /usr/local/pgsql/data_datanode1 >logfile 2>&1 &
+/usr/local/pgsql/bin/postgres --datanode -p 15433 -c pooler_port=40102 -D /usr/local/pgsql/data_datanode2 >logfile 2>&1 &
+/usr/local/pgsql/bin/postgres --coordinator -c pooler_port=40100 -D /usr/local/pgsql/data_coord1 >logfile 2>&1 &
/usr/local/pgsql/bin/psql -c "ALTER NODE coord1 WITH (TYPE = 'coordinator', PORT = 5432)" postgres
/usr/local/pgsql/bin/psql -c "CREATE NODE datanode1 WITH (TYPE = 'datanode', PORT = 15432)" postgres
/usr/local/pgsql/bin/psql -c "CREATE NODE datanode2 WITH (TYPE = 'datanode', PORT = 15433)" postgres
@@ -66,6 +66,8 @@ su - postgres
/usr/local/pgsql/bin/psql -c "EXECUTE DIRECT ON (datanode2) 'ALTER NODE datanode2 WITH (TYPE = ''datanode'', PORT = 15433)'" postgres
/usr/local/pgsql/bin/psql -c "EXECUTE DIRECT ON (datanode2) 'CREATE NODE datanode1 WITH (TYPE = ''datanode'', PORT = 15432)'" postgres
/usr/local/pgsql/bin/psql -c "SELECT pgxc_pool_reload()" postgres
+/usr/local/pgsql/bin/psql -c "EXECUTE DIRECT ON (datanode1) 'SELECT pgxc_pool_reload()'" postgres
+/usr/local/pgsql/bin/psql -c "EXECUTE DIRECT ON (datanode2) 'SELECT pgxc_pool_reload()'" postgres
/usr/local/pgsql/bin/createdb test
/usr/local/pgsql/bin/psql test
</synopsis>