View previous topic :: View next topic |
Author |
Message |
saky n00b
Joined: 06 Sep 2013 Posts: 2
|
Posted: Fri Sep 06, 2013 7:19 am Post subject: Postgres error |
|
|
FATAL: invalid value for parameter "port": "-S"
Script
-------------------------------------------------
port=5432
num=3
for i in $(seq 1 $num)
do
pg_ctl -Z datanode -o "-p $($port + $i) -S 7168" -D /localscratch/`whoami`/pgsql/data_datanode"$i" -l /localscratch/`whoami`/pgsql/datanode"$i"_logfile start
done
-------------------------------------------------
Kindly provide pointers to solution. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Sep 06, 2013 9:03 pm Post subject: |
|
|
$(( ))
Is there a reason why you need three postgres servers running on the same machine, and can't use the standard /etc/init.d/postgresql-9.x method? |
|
Back to top |
|
|
saky n00b
Joined: 06 Sep 2013 Posts: 2
|
Posted: Fri Sep 06, 2013 11:23 pm Post subject: |
|
|
Ant P. wrote: | $(( ))
Is there a reason why you need three postgres servers running on the same machine, and can't use the standard /etc/init.d/postgresql-9.x method? |
I am just trying to a single postgres with three datanodes. |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Sat Sep 07, 2013 6:20 pm Post subject: |
|
|
You should be using Postgres' built in tablespace support if you want data in multiple directories. There's no advantage to running it this way. |
|
Back to top |
|
|
|