X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A336552A2F for ; Fri, 6 May 2005 09:10:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 96416-06 for ; Fri, 6 May 2005 12:10:51 +0000 (GMT) Received: from smtp100.rog.mail.re2.yahoo.com (smtp100.rog.mail.re2.yahoo.com [206.190.36.78]) by svr1.postgresql.org (Postfix) with SMTP id 159EE533D0 for ; Fri, 6 May 2005 09:10:50 -0300 (ADT) Received: from unknown (HELO phlogiston.dydns.org) (a.sullivan@rogers.com@216.75.167.195 with login) by smtp100.rog.mail.re2.yahoo.com with SMTP; 6 May 2005 12:10:53 -0000 Received: by phlogiston.dydns.org (Postfix, from userid 1000) id 7555B3F9C; Fri, 6 May 2005 08:10:48 -0400 (EDT) Date: Fri, 6 May 2005 08:10:48 -0400 From: Andrew Sullivan To: pgsql-general@postgresql.org Subject: Re: postgresql replication Message-ID: <20050506121048.GA12387@phlogiston.dyndns.org> References: <427A2BF4.9030202@yellowhawk.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427A2BF4.9030202@yellowhawk.co.uk> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.045 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/283 X-Sequence-Number: 77631 On Thu, May 05, 2005 at 03:21:40PM +0100, Peter Wilson wrote: > Why is this documentation on 'Christoper B. Browns homepage rather than > the Slony web pages? The 'official' Slony documentation I had available > was at : > http://gborg.postgresql.org/project/slony1/genpage.php?howto_idx > > and it *really* didn't help with the problems I had. I think it's already been acknowledged that the 1.0.5 release's documentation wasn't as comprehensive as people liked; but that is, as has also been noted, because nobody had run into the problems you had yet (i.e. the documentation was as complete at release time as the users had been able to make it). Nevertheless, it is not true that the documentation isn't on the slony pages. By my count, including the header bar, the "admin guide" is the 10th link on the page. It's near the top. These updated docs are also in the currently-beta version of the software. (I don't want to get into a flamewar over this; I just think it's unfair to claim the docs aren't there.) > Having now taken a look at the documentation you reference, it's still > not wonderfully comprehensive. The problem I had was that despite the > fact that my tables had primary keys the Slony configuration refused to > recognise them. The documentation says simply that primary or candidate > primary keys are a requirements. This is also not true. The documentation for SET ADD TABLE tells you that there is a KEY option to tell slonik what the key field is. Automatic detection won't always work, because not all "primary keys" are so noted in a PostgreSQL database. What is worth mentioning, though, is that Slony is not as simple to set up as some of the alternatives, like dbmirror. This is because items like controlled switchover, failover, cascading, target promotion, and log shipping are all designed-in features of Slony. The same is not true of dbmirror, or erserver. My experience tells me that such features are very hard to add in retrospect. Indeed, the very reason Afilias sponsored development of Slony was that we concluded the features we wanted could be more easily built from the ground up than added to any of the alternatives we then had available. (This isn't to say everybody should use Slony; just that it's important to realise that additional features come at the cost of additional complexity. My bet is that anyone really needing high availability will end up needing some of those additional features.) A -- Andrew Sullivan | ajs@crankycanuck.ca When my information changes, I alter my conclusions. What do you do sir? --attr. John Maynard Keynes