User Tools

Site Tools


doc:appunti:linux:sa:postgresql_replica

This is an old revision of the document!


Replica PostgreSQL

Slony

Slony è un sistema di replica asincrono da singolo master a slave multipli. Le principali limitazioni sono:

  • Richiede pl/pgSQL su tutti i database
  • Richiede una PKEY per ogni tabella
  • Bisogna dichiarare ogni tabella da copiare
  • Bisogna raggruppare in set le tabelle correlate (FOREIGN KEY)
  • Vengono propagate automaticamente solo le modifiche a tabelle e sequenze
  • Le modifiche allo schema devono essere propagate a mano
  • Le funzioni devono essere propagate a mano
  • Le view devono essere propagate a mano.
  • You should not directly use pg_dump to dump schemas on subscribers (slaves).

Pgpool-II

Pitr

La principale limitazione di Pitr è: A PITR replica remains dormant until you apply logs and start up the database. You cannot use the database and apply updates simultaneously. It is like having a “standby server” which cannot be used without it ceasing to be “standby.”

doc/appunti/linux/sa/postgresql_replica.1236009357.txt.gz · Last modified: 2009/08/06 00:36 (external edit)