X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id EA7B5DAAC1 for ; Thu, 27 Oct 2005 09:34:07 -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 20953-01 for ; Thu, 27 Oct 2005 12:34:02 +0000 (GMT) Received: from pjetlic.mobart.hr (pjetlic.mobart.hr [80.80.51.10]) by svr1.postgresql.org (Postfix) with ESMTP id A8013D9A24 for ; Thu, 27 Oct 2005 09:34:04 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by pjetlic.mobart.hr (Postfix) with ESMTP id 20CB017A49; Thu, 27 Oct 2005 14:34:08 +0200 (CEST) Received: from pjetlic.mobart.hr ([127.0.0.1]) by localhost (pjetlic [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12996-04-22; Thu, 27 Oct 2005 14:34:08 +0200 (CEST) Received: from mike.mobart.hr (mike.mobart.hr [192.168.10.94]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pjetlic.mobart.hr (Postfix) with ESMTP id 0312217A46; Thu, 27 Oct 2005 14:34:08 +0200 (CEST) Subject: Re: why vacuum From: Mario Splivalo Reply-To: mario.splivalo@mobart.hr To: Andrew Sullivan Cc: pgsql-sql@postgresql.org In-Reply-To: <20051027102120.GA26612@phlogiston.dyndns.org> References: <200510261015.17623.lawgon@thenilgiris.com> <1130339980.2872.12.camel@state.g2switchworks.com> <1130401361.31435.15.camel@ekim> <20051027102120.GA26612@phlogiston.dyndns.org> Content-Type: text/plain Organization: Mob-Art Date: Thu, 27 Oct 2005 14:34:13 +0200 Message-Id: <1130416453.31435.30.camel@ekim> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by OpenSource AV+AS Mail Server X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 required=5 tests=[AWL=0.004] X-Spam-Level: X-Archive-Number: 200510/364 X-Sequence-Number: 23217 On Thu, 2005-10-27 at 06:21 -0400, Andrew Sullivan wrote: > On Thu, Oct 27, 2005 at 10:22:41AM +0200, Mario Splivalo wrote: > > offers no replication at all, you need to use slony (wich is also a poor > > replacement for a wannabe replication), or some other commercial > > products. What about 2PC? What about linking the databases from > > Slony is in fact a community-supported system; so I don't know why > you think that amounts to "no replication at all". And since this is > a community-supported system, it'd be nice if you said why it's a > "poor replacement for wannabe replication". What's wrong with it? Postgres itself offers no replication. You could achive some sort of replication by restoring the parts of WAL files, but that's rather inconvinient. Then, if you want to replicate your data in any way, you need to take slony, or whatever is existant out there, commercial or open-free-source. I appologize here if I insulted the slony developers, I ment nothing like that :) I am sorry. I was just addressing the issue where replication to one means 'just move my data here', and at others it means 'merge my data'. > > Btw, I 'ported' the merge replication from MSSQL to postgres. It > > basicaly adds triggers to every table that is 'published' for > > replication. There is a separate table to store and calculate the change > > differences from several servers (so you could do update on any of the > > servers and change will be propagated to the others). I'm missing 2PC > > badly here, I wrote some stupid python 'thingie' wich should act as 2PC > > serializer, but that's slow as hell. And triggers slow down postgres > > quite a bit. > > This is interesting. Care to package it up for others, or write a > proof-of-concept outline for the lists or General Bits or something > like that? This is a different sort of replication people are asking > for. Note that you get 2PC in the next Postgres release. I'll be glad to, I'm just not that familiar (in fact, i'm not familiar at all) with the 'proof-of-cocept' or 'General Bits' terms, so if you could http-redirect me, I'll be most thankfull. Mentioning the 2PC, is it available in pg8.1beta4? Mike -- Mario Splivalo Mob-Art mario.splivalo@mobart.hr "I can do it quick, I can do it cheap, I can do it well. Pick any two."