Re: Shared data dir for multiple postgresql nodes - Mailing list pgsql-admin

From Ron
Subject Re: Shared data dir for multiple postgresql nodes
Date
Msg-id 6cf08d9a-9480-d396-d54d-908899a0d577@gmail.com
Whole thread Raw
In response to Shared data dir for multiple postgresql nodes  (Prince Pathria <prince.pathria@goevive.com>)
Responses Re: Shared data dir for multiple postgresql nodes  (Guillaume Lelarge <guillaume@lelarge.info>)
Re: Shared data dir for multiple postgresql nodes  ("Jehan-Guillaume (ioguix) de Rorthais" <ioguix@free.fr>)
List pgsql-admin
On 12/20/18 2:41 AM, Prince Pathria wrote:
Hi,
I'm asking this out of curiosity, if I have 2 postgres nodes on same server,
1. listening on port 5432
2. listening on port 5433

What issue's I might face if I do it like this? Assuming I'm doing this for multimaster approach.

pg_ctl -D /data/postgres -o "-p 5432" -l /var/log/pg1 start
pg_ctl -D /data/postgres -o "-p 5433" -l /var/log/pg2 start

I don't think Postgres will even let you install the second node in the same directory.

Also, you should name the directories /postgres/data Postgres expects to be installed in a directory named "data".

In fact, if you install Postgres from postgresql.org packages, it'll install it in "X.Y/data", where X is the major version number, and Y is the minor version number.


--
Angular momentum makes the world go 'round.

pgsql-admin by date:

Previous
From: Devendra Yadav
Date:
Subject: Re: Bulk_insert in postgresql like Microsoft SQL server
Next
From: Guillaume Lelarge
Date:
Subject: Re: Shared data dir for multiple postgresql nodes