PostgreSQL: two sites working on the same data - live replication or one remote database? (Reported, not reproduced)

Applies to: a 2014 discussion; no Clarion or PostgreSQL version is named.

Problem as reported

Site A has 10 users working all day. Site B is a NetTalk web server used sporadically by about 100 users. Both work on the same data and both must add, change and delete. The poster asked whether two PostgreSQL databases at two sites can be synced live, or whether there should be one database and the other site works remotely: over the internet with the connection string pointing at the main site, through remote desktop or VNC, or through a web server app.

What the thread found

  • PostgreSQL can be set up to replicate between servers. One poster named PGPOOL, which does load balancing, connection management and replication, with the users connecting through it; he had trained on it but not set it up. He also suggested looking at EnterpriseDB for commercial solutions, and noted that PostgreSQL can stream transactions between servers in a couple of modes.
  • For any synchronisation the same poster would use UUID keys instead of sequence ids, as they make a sync easier and less error prone (his opinion).
  • Another poster asked why the web server must sit at site B, and later suggested moving the desktop app to the hosting provider and letting desktop users reach it by RDP (TSPlus and Citrix were named).
  • The original poster had the web server at his own site on an ADSL line with a dynamic IP and power cuts, and a dedicated server in a data center as an alternative. His three options were to leave it, to run two databases synced live, or to move everything to the remote site. He did not report which he chose.

Caveats

  • Nothing was tried in the thread; the replication tools were named from experience of training, not from a result.

Today (2026)

Not reproduced. This entry records a 2014 discussion. A reader who has run a two-site PostgreSQL setup with a Clarion app is asked to add the outcome or close it.

Sources: Johan R. (Nov 2014, the question), Joe T., Mike H. (Nov 2014) in softvelocity.clarion.databasedrivers.