Re: Postgresql 8.4 replication using Londiste - Mailing list pgsql-admin

From Craig James
Subject Re: Postgresql 8.4 replication using Londiste
Date
Msg-id 4DEFDB81.8060003@emolecules.com
Whole thread Raw
In response to Postgresql 8.4 replication using Londiste  ("Maria L. Wilson" <Maria.L.Wilson-1@nasa.gov>)
Responses Re: Postgresql 8.4 replication using Londiste  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-admin
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
aremote Postgres server.  I've installed and configured londiste on the servers - that was no problem.  I just don't
seeanything in the docs that specify how to replicate only one column - not the entire table.  Anybody out there have
anyexpertise 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
restof the columns, and a view to give your app the original view.  Even so, you have to replicate the one column plus
thePK, 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-columntable (plus PK), start replication with Londiste, then do ALTER TABLE to add the rest of the columns.  A hack
forsure. 

Craig

pgsql-admin by date:

Previous
From: "Maria L. Wilson"
Date:
Subject: Postgresql 8.4 replication using Londiste
Next
From: Joby Joba
Date:
Subject: Close jdbc connection