Re: Synchronous Log Shipping Replication

From: Simon Riggs <simon(at)2ndQuadrant(dot)com>
To: ITAGAKI Takahiro <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, pgsql-hackers(at)postgresql(dot)org, Markus Wanner <markus(at)bluegap(dot)ch>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
Subject: Re: Synchronous Log Shipping Replication
Date: 2008-09-08 19:04:57
Message-ID: 1220900697.3913.262.camel@ebony.2ndQuadrant
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Mon, 2008-09-08 at 19:19 +0900, ITAGAKI Takahiro wrote:
> Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>
> > > > b) Use new background process as WALSender
> > > >
> > > > This idea needs background-process hook which enables users
> > > > to define new background processes
>
> > I think starting/stopping a process for each WAL send is too much
> > overhead.
>
> Yes, of course slow. But I guess it is the only way to share one socket
> in all backends. Postgres is not a multi-threaded architecture,
> so each backend should use dedicated connections to send WAL buffers.
> 300 backends require 300 connections for each slave... it's not good at all.

So... don't have individual backends do the sending. Have them wait
while somebody else does it for them.

> > It sounds like Fujii-san is basically saying they can only get the hooks
> > done for 8.4, not the actual solution.
>
> No! He has an actual solution in his prototype ;-)

The usual thing if you have a WIP patch you're not sure of is to post
the patch for feedback.

If you guys aren't going to post any code to the project then I'm not
clear why it's being discussed here. Is this a community project or a
private project?

--
Simon Riggs www.2ndQuadrant.com
PostgreSQL Training, Services and Support

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2008-09-08 19:15:02 Re: [PATCHES] TODO item: Implement Boyer-Moore searching (First time hacker)
Previous Message Korry Douglas 2008-09-08 19:04:23 Re: [PATCH] Cleanup of GUC units code