Received: from localhost (pluto.hub.org [200.46.204.4]) by postgresql.org (Postfix) with ESMTP id 75FCE9FA265 for ; Mon, 20 Nov 2006 11:35:31 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.4]) (amavisd-new, port 10024) with ESMTP id 19436-01 for ; Mon, 20 Nov 2006 11:35:23 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from bugaboo.mu (ns1.bugaboo.mu [213.133.111.57]) by postgresql.org (Postfix) with ESMTP id B6C689FA22A for ; Mon, 20 Nov 2006 11:35:28 -0400 (AST) Received: from [192.168.77.20] (p54BD8921.dip0.t-ipconnect.de [::ffff:84.189.137.33]) (AUTH: CRAM-MD5 markus@bluegap.ch) by bugaboo.mu with esmtp; Mon, 20 Nov 2006 16:35:25 +0100 id 02432759.4561CB3D.00000B10 Message-ID: <4561CB3D.8000500@bluegap.ch> Date: Mon, 20 Nov 2006 16:35:25 +0100 From: Markus Schiltknecht User-Agent: Icedove 1.5.0.8 (X11/20061116) MIME-Version: 1.0 To: Bruce Momjian CC: Josh Berkus , pgsql-docs@postgresql.org, Jim Nasby , Jeff Frost , Chris Browne Subject: Re: [HACKERS] Replication documentation addition References: <200611201507.kAKF7AT21962@momjian.us> In-Reply-To: <200611201507.kAKF7AT21962@momjian.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/41 X-Sequence-Number: 3875 Good morning Bruce, Bruce Momjian wrote: >> Oops, I see Markus Schiltknech likes the term "statement-based >> replication" better too. Certainly master-slave communication using >> "statement-based replication" has the same drawbacks as the broadcast >> method, but I wanted to highlight that the broadcast was happening >> outside the server. Do we need a master/slave "statement-based >> replication" item and a middleware broadcast item? Ah, I see you had a much narrower definition of statement-based replication in mind. As I've pointed out, there are different implementations of 'statement-based replication'. I don't know about sequoia, but Postgres-R fails back to statement based replication in certain situations. Thus having an external 'program intercept every SQL query' is absolutely no necessity of this algorithm, it can very well be done inside the db backend, where you can better catch non-deterministic functions... but again, that's an implementation detail. So, do you want to describe pgpool here or do you want to give a more general description? > > Statement-Based Replication > > > > In statement-based replication, a program intercepts every SQL > query and sends it to all servers. Each server operates > independently. Read-only queries can be sent to a single server > because there is no need for all servers to process it. > If you want to go for the general description, I think the 'each server operates independently' is somewhere between confusing and false. And again, the last sentence applies to all multi-master replication solutions. Regards Markus