Re: autovacuum process handling - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: autovacuum process handling
Date
Msg-id 20070122233021.GU64372@nasby.net
Whole thread Raw
In response to autovacuum process handling  (Alvaro Herrera <alvherre@commandprompt.com>)
Responses Re: autovacuum process handling  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
On Mon, Jan 22, 2007 at 04:24:28PM -0300, Alvaro Herrera wrote:
> 4. Launcher will be a continuously-running process, akin to bgwriter;
> connected to shared memory
So would it use up a database connection?

> 5. Workers will be direct postmaster children; so postmaster will get
> SIGCHLD when worker dies

As part of this I think we need to make it more obvious how all of this
ties into max_connections. Currently, autovac ties up one of the
super-user connections whenever it's not asleep; these changes would
presumably mean that more of those connections could be tied up.

Rather than forcing users to worry about adjusting max_connections and
superuser_reserved_connections to accommodate autovacuum, the system
should handle it for them.

Were you planning on limiting the number of concurrent vacuum processes
that could be running? If so, we could probably just increase superuser
connections by that amount. If not, we might need to think of something
else...
-- 
Jim Nasby                                            jim@nasby.net
EnterpriseDB      http://enterprisedb.com      512.569.9461 (cell)


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-patches] Win32 WEXITSTATUS too
Next
From: Steve Atkins
Date:
Subject: Re: [GENERAL] Autovacuum Improvements