Re: two or more pg installations running as the same user - Mailing list pgsql-general

From Filip Rembiałkowski
Subject Re: two or more pg installations running as the same user
Date
Msg-id 92869e660811250433t2bc8d26erd9962d53d151902e@mail.gmail.com
Whole thread Raw
In response to two or more pg installations running as the same user  ("Grzegorz Jaśkiewicz" <gryzman@gmail.com>)
Responses Re: two or more pg installations running as the same user
List pgsql-general


2008/11/25 Grzegorz Jaśkiewicz <gryzman@gmail.com>
hey folks,

I am thinking about testing enviroment here, and gotta setup temporary instalation of postgres for that. More than one, because software operates on few different connections, to different databases.
I know I can do it under same user, just by changing PGDATA/PGPORT before initdb gets to run. But will it be safe otherwise ?

yes, no problem with that. for me it was just:

initdb -D /tmp/data1
vim /tmp/data1/postgresql.conf +/port
pg_ctl start -D /tmp/data1

initdb -D /tmp/data2
vim /tmp/data2/postgresql.conf +/port
pg_ctl start -D /tmp/data2


 



--
GJ



--
Filip Rembiałkowski

pgsql-general by date:

Previous
From: Timo Erbach
Date:
Subject: Re: Syntac error
Next
From: Rafael Martinez
Date:
Subject: Re: two or more pg installations running as the same user