pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Kretschmer <andreas@a-kretschmer.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: Append only replication over intermittent links (with local only delete?)
Date: Fri, 15 Jun 2018 17:44:45 +0200
Message-ID: <ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de> (raw)
In-Reply-To: <CA+A7gKmJWmDXic0jj3XVonBM8cA62d6jdndBGqPHCHicMzax4w@mail.gmail.com>
References: <CA+A7gKmJWmDXic0jj3XVonBM8cA62d6jdndBGqPHCHicMzax4w@mail.gmail.com>



Am 14.06.2018 um 14:04 schrieb Uri Braun:
> Hi,
>
> I'm looking to run Postgres -- flexible on exact version -- on some 
> devices installed in cars and replicated to a central server over cell 
> phone modems. I expect dropped connections due to: lack of coverage 
> (remote areas), dead spots, tunnels, cars parked in garages, device 
> power disconnected, etc. I expect all data to be generated on the car 
> devices and want it to eventually be copied over to the central 
> server. I would also like to be able to delete old data -- say months 
> old -- on the car equipment and NOT have those deletes propagate to 
> the central server.
>
> To be clear, the car device will surely add data -- append rows -- and 
> may very occasionally add a new table. I would expect the only case 
> where a delete may occur -- other than culling old data -- is during 
> recovery of a partial write or transaction rollbacks. The time 
> requirements are loose, but I would like replication consistency 
> within hours (once connected).
>
> I'm wondering what replication scheme is appropriate for this use case 
> and how to configure it appropriately.
>

i think pglogical can fit your requirements, please take a look:

https://www.2ndquadrant.com/en/resources/pglogical/


Regards, Andreas

-- 
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com





view thread (3+ messages)

Message-ID: <ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de>
Permalink:  ../ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de/
Also on:    postgresql.org/message-id/ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: andreas@a-kretschmer.de
  Subject: Re: Append only replication over intermittent links (with local only delete?)
  In-Reply-To: <ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de>
  References: <CA+A7gKmJWmDXic0jj3XVonBM8cA62d6jdndBGqPHCHicMzax4w@mail.gmail.com> <ad5f9df5-03ed-d196-fbdd-57116a8ed595@a-kretschmer.de>

* 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