Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 2F0539FB660 for ; Tue, 31 Jul 2007 10:36:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05230-01 for ; Tue, 31 Jul 2007 10:36:26 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from main2.mycybernet.net (main2.mycybernet.net [209.222.63.140]) by postgresql.org (Postfix) with ESMTP id 707B49FB638 for ; Tue, 31 Jul 2007 10:36:26 -0300 (ADT) Received: from 227-54-222-209.mycybernet.net ([209.222.54.227] helo=phlogiston.dydns.org) by main2.mycybernet.net with esmtp (Exim 4.62) (envelope-from ) id 1IFrth-0000Dt-75 for pgsql-sql@postgresql.org; Tue, 31 Jul 2007 09:36:25 -0400 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id D99DC3FAF; Tue, 31 Jul 2007 09:36:19 -0400 (EDT) Date: Tue, 31 Jul 2007 09:36:19 -0400 From: Andrew Sullivan To: pgsql-sql@postgresql.org Subject: Re: Database synchronization Message-ID: <20070731133619.GB8583@phlogiston.dyndns.org> References: <20070724143737.GA25948@apartia.fr> <004e01c7cea4$58046570$080d3050$@com> <46A724CB.3030405@archonet.com> <000001c7cea8$39775d20$ac661760$@com> <46A7449A.4080500@archonet.com> <001e01c7cf40$85e7b540$91b71fc0$@com> <6c3fb5eb0707310102s73bf7516w8dd157c550e2cf7d@mail.gmail.com> <46AEF12C.2090107@archonet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46AEF12C.2090107@archonet.com> User-Agent: Mutt/1.5.9i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/197 X-Sequence-Number: 28932 On Tue, Jul 31, 2007 at 09:22:04AM +0100, Richard Huxton wrote: > I don't think slony lets you rename tables/schemas during transfer. I'm > not sure many people want it, and it would be a complicated thing to do > properly in the general case (you'll need to consider dependant objects > - FKeys, views, functions etc). It doesn't allow this, but you could cause it to happen anyway on the replica using a trigger. You have to use STORE TRIGGER to make this work. A -- Andrew Sullivan | ajs@crankycanuck.ca The whole tendency of modern prose is away from concreteness. --George Orwell