Re: [pgsql-patches] Autovacuum launcher patch

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Markus Schiltknecht <markus(at)bluegap(dot)ch>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [pgsql-patches] Autovacuum launcher patch
Date: 2007-01-29 19:32:42
Message-ID: 20070129193242.GB14134@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Markus Schiltknecht wrote:
> Alvaro Herrera wrote:
> >>I'd suggest sticking to something closer to the current two-phase design
> >>where you make some preliminary decision which database to send a worker
> >>to, and then the worker determines exactly what to do once it can look
> >>around inside the DB. Possibly we need some back-signaling mechanism
> >>whereby a worker can tell the launcher "hey boss, send help" if it sees
> >>that there are enough tables that need work, but I'm unenthused about
> >>having the launcher figure that out itself.
> >
> >Hmm, yeah, we'll probably need some communication channel eventually.
>
> Maybe my IMessages code could be of use?
>
> It's still awfully slow compared with UNIX pipes or even System V IPC
> message queues, since it uses LWLocks for sending and retrieving
> messages. That could certainly be optimized, maybe even towards a
> lock-free implementation, which could theoretically be as fast as System
> V IPC messages. OTOH, such stuff is hard to get right.

Hmm, I remember eyeballing that code. Would you mind sending me an URL
to that file, or something? Or maybe send me the files themselves?

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2007-01-29 19:39:34 Re: shared_preload_libraries support on Win32?
Previous Message Markus Schiltknecht 2007-01-29 19:28:08 Re: [pgsql-patches] Autovacuum launcher patch

Browse pgsql-patches by date

  From Date Subject
Next Message Markus Schiltknecht 2007-01-29 19:58:25 Re: Autovacuum launcher patch
Previous Message Markus Schiltknecht 2007-01-29 19:28:08 Re: [pgsql-patches] Autovacuum launcher patch