Re: Sharing data directories between machines

From: Davide Setti <davide(dot)setti(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Sharing data directories between machines
Date: 2013-08-06 19:00:54
Message-ID: CA+p5JUaEOAk7RX4gFhtHhYc1E4n0Tq6wOu9EAfCwUAgDx4-Opg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You can't just make them share the data dir (for example: what about
caches in memory?)

Probably what you want is streaming replication:

http://wiki.postgresql.org/wiki/Streaming_Replication

Regards.

On Tue, Aug 6, 2013 at 7:45 PM, JD Wong <jdmswong(at)gmail(dot)com> wrote:
> Hi all!
>
> I have two servers, which share a large mounted drive. I would like to
> share postgres databases between them dynamically so that when one makes
> changes, they are immediately available in the other.
>
> I tried moving the data directory over to the mounted drive, and pointing
> both postgresql.confs to that one. I was able to have both access the same
> databases, but they can't share changes. It's like they're running on two
> separate data directories, even though show data_directory reports the same
> path for each.
>
> How can I make them play nicely?
>
> Thanks!
> -JD

--

Davide Setti
code: http://github.com/vad

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Steve Atkins 2013-08-06 19:08:57 Re: Sharing data directories between machines
Previous Message JD Wong 2013-08-06 17:45:06 Sharing data directories between machines