Re: two or more pg installations running as the same user

From: Filip Rembiałkowski <plk(dot)zuber(at)gmail(dot)com>
To: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>
Cc: "Postgres general mailing list" <pgsql-general(at)postgresql(dot)org>
Subject: Re: two or more pg installations running as the same user
Date: 2008-11-25 12:33:07
Message-ID: 92869e660811250433t2bc8d26erd9962d53d151902e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2008/11/25 Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rafael Martinez 2008-11-25 13:13:01 Re: two or more pg installations running as the same user
Previous Message Timo Erbach 2008-11-25 12:11:15 Re: Syntac error