From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Shared data dir for multiple postgresql nodes
Date: Thu, 20 Dec 2018 09:28:26 -0600
Message-ID: <6cf08d9a-9480-d396-d54d-908899a0d577@gmail.com> (raw)
In-Reply-To: <CAON0Dazt3VJkBd6HUfrim4Dab7a6KAx8CMq+fLxAVp9jx3=TFQ@mail.gmail.com>
References: <CAON0Dazt3VJkBd6HUfrim4Dab7a6KAx8CMq+fLxAVp9jx3=TFQ@mail.gmail.com>
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/pg1start|
> |
> |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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Shared data dir for multiple postgresql nodes
In-Reply-To: <6cf08d9a-9480-d396-d54d-908899a0d577@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox