pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig James <craig_james@emolecules.com>
To: pgsql-admin@postgresql.org
Subject: Re: Postgresql 8.4 replication using Londiste
Date: Wed, 08 Jun 2011 13:28:49 -0700
Message-ID: <4DEFDB81.8060003@emolecules.com> (raw)
In-Reply-To: <4DEFD00C.8030600@nasa.gov>
References: <4DEFD00C.8030600@nasa.gov>

On 6/8/11 12:39 PM, Maria L. Wilson wrote:
> Interested in using Londiste to set up replication of only one column in a particular database to another database on a remote Postgres server.  I've installed and configured londiste on the servers - that was no problem.  I just don't see anything in the docs that specify how to replicate only one column - not the entire table.  Anybody out there have any expertise in this that can point me in the right direction?
Londiste is a table-level replicator.

You might be able to create one table with the column you want replicated (plus a primary key), another table with the rest of the columns, and a view to give your app the original view.  Even so, you have to replicate the one column plus the PK, unless the data you're replicating is unique and can be its own PK.

On the other hand, I've noticed that Londiste doesn't know when you change a table.  You might be able to create your one-column table (plus PK), start replication with Londiste, then do ALTER TABLE to add the rest of the columns.  A hack for sure.

Craig



view thread (4+ messages)  latest in thread

Message-ID: <4DEFDB81.8060003@emolecules.com>
Permalink:  ../4DEFDB81.8060003@emolecules.com/
Also on:    postgresql.org/message-id/4DEFDB81.8060003@emolecules.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: craig_james@emolecules.com
  Subject: Re: Postgresql 8.4 replication using Londiste
  In-Reply-To: <4DEFDB81.8060003@emolecules.com>

* 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