Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 84B18B5DD59 for ; Wed, 8 Jun 2011 17:53:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 17857-05 for ; Wed, 8 Jun 2011 20:53:12 +0000 (UTC) X-Greylist: delayed 00:24:17.938568 by SQLgrey-1.7.6 Received: from mail-pz0-f46.google.com (mail-pz0-f46.google.com [209.85.210.46]) by mail.postgresql.org (Postfix) with ESMTP id E6A23B5DC51 for ; Wed, 8 Jun 2011 17:53:11 -0300 (ADT) Received: by pzk9 with SMTP id 9so426380pzk.19 for ; Wed, 08 Jun 2011 13:53:11 -0700 (PDT) Received: by 10.68.66.101 with SMTP id e5mr1034143pbt.447.1307564932770; Wed, 08 Jun 2011 13:28:52 -0700 (PDT) Received: from Craig-Jamess-MacBook-Pro.local (wsip-70-167-122-86.sd.sd.cox.net [70.167.122.86]) by mx.google.com with ESMTPS id w2sm767926pbg.37.2011.06.08.13.28.50 (version=SSLv3 cipher=OTHER); Wed, 08 Jun 2011 13:28:51 -0700 (PDT) Message-ID: <4DEFDB81.8060003@emolecules.com> Date: Wed, 08 Jun 2011 13:28:49 -0700 From: Craig James User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Re: Postgresql 8.4 replication using Londiste References: <4DEFD00C.8030600@nasa.gov> In-Reply-To: <4DEFD00C.8030600@nasa.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.419 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72 X-Spam-Level: ** X-Archive-Number: 201106/46 X-Sequence-Number: 37672 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