Re: run 2 instances of postgres 9.4 on same linux VM

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: run 2 instances of postgres 9.4 on same linux VM
Дата
Msg-id 5641108C.4070709@aklaver.com
обсуждение исходный текст
Ответ на run 2 instances of postgres 9.4 on same linux VM  (anj patnaik <patna73@gmail.com>)
Ответы Re: run 2 instances of postgres 9.4 on same linux VM  (anj patnaik <patna73@gmail.com>)
Список pgsql-general
On 11/09/2015 11:40 AM, anj patnaik wrote:
> I have a linux 6.5 RHEL VM in which I am running an instance of PG 9.4.
> In order to test NFS, I want to run a second instance on same VM but
> different file system.

http://www.postgresql.org/docs/9.4/interactive/app-initdb.html

init the cluster on the file system you want using -D, assuming the VM
can access that file system.

FYI, best practices is not to run on NFS, so do not be surprised if
things break.

>
> Has anyone done this and is it possible with no issues?

>
> Or is it better to run different versions of PG on same server?

No, you just need to make sure the Postgres clusters are listening on
different ports. That means going into postgresql.conf in the cluster
and changing the port variable.

>
> Please advise. Thanks


--
Adrian Klaver
adrian.klaver@aklaver.com


В списке pgsql-general по дате отправления:

Предыдущее
От: anj patnaik
Дата:
Сообщение: run 2 instances of postgres 9.4 on same linux VM
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: run 2 instances of postgres 9.4 on same linux VM