Re: Question from someone who is not trained in computer sciences

From: Ben Chobot <bench(at)silentmedia(dot)com>
To: Judith Lacoste <jlacoste(at)miacellavie(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Question from someone who is not trained in computer sciences
Date: 2019-09-05 21:13:52
Message-ID: F927170E-5799-449E-B6B5-3CD7750E38CA@silentmedia.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sep 5, 2019, at 2:00 PM, Judith Lacoste <jlacoste(at)miacellavie(dot)com> wrote:
>
> Hi,
>
> I plan to install the database on a server in the office. Me and my four colleagues will occasionally connect to this database when we are working in other locations (usually hospitals or universities). In such remote locations, we often do not have internet/network, yet we still need to access the database.  Currently, we use a system where a copy of the database lives on each of our laptops.  We can access all the information in the database despite being offline.  This local copy of the database is synchronized with the server once network becomes available again.  <https://www.meetup.com/Montreal-PostgreSQL-Meetup/discussions/4579546807009280/chat/>
>
> M <https://www.meetup.com/Montreal-PostgreSQL-Meetup/discussions/4579546807009280/chat/>y question is whether or not such set up is possible with PostgreSQL?

This ranges from very easy to technically-possible-but-very-difficult, depending upon what you and your colleagues do with you local copies of the data. If your database schema and activities are such that your local edits will trample over each other, reconciling those changes automatically when you return to your office might be a challenge. If, however, you and your colleagues each change different rows, or even better make no changes on your local copies, then this becomes much easier.

While it isn't the simpliest tool to set up, if you're planning to make edits to your local databases then bucardo is a replication package that can give you want you want. (Really any multi-master replication tool should work, but bucardo has an advantage in that it was designed with unreliable connectivity in mind.)

If you're planning to have your local databases be read-only, then virtually any asynchronous replication strategy for postgres will work. (This means almost all of them.)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2019-09-05 21:30:47 Re: Question from someone who is not trained in computer sciences
Previous Message Judith Lacoste 2019-09-05 21:00:14 Question from someone who is not trained in computer sciences