Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postgres error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
saky
n00b
n00b


Joined: 06 Sep 2013
Posts: 2

PostPosted: Fri Sep 06, 2013 7:19 am    Post subject: Postgres error Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri Sep 06, 2013 9:03 pm    Post subject: Reply with quote

$(( ))

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
View user's profile Send private message
saky
n00b
n00b


Joined: 06 Sep 2013
Posts: 2

PostPosted: Fri Sep 06, 2013 11:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Sat Sep 07, 2013 6:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum