X-Original-To: pgsql-advocacy-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5408CD1B498 for ; Fri, 23 Apr 2004 16:13:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42633-03 for ; Fri, 23 Apr 2004 16:13:46 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id F1E6ED1B47D for ; Fri, 23 Apr 2004 16:13:44 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i3NJDiSx089165 for ; Fri, 23 Apr 2004 19:13:44 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i3NIoQfO084411 for pgsql-advocacy@postgresql.org; Fri, 23 Apr 2004 18:50:26 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.advocacy Subject: Re: [HACKERS] What can we learn from MySQL? Date: Fri, 23 Apr 2004 14:18:14 -0400 Organization: cbbrowne Computing Inc Lines: 46 Message-ID: References: <20040423124716.521420c2.darcy@druid.net> <200404231708.i3NH8UM19188@candle.pha.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org X-message-flag: Outlook is rather hackable, isn't it? X-Home-Page: http://www.cbbrowne.com/info/ X-Affero: http://svcs.affero.net/rm.php?r=cbbrowne User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) Cancel-Lock: sha1:Nf7KmBL1ZwAmpCMNlE/a+rsgS5I= To: pgsql-advocacy@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200404/165 X-Sequence-Number: 4137 Martha Stewart called it a Good Thing when pgman@candle.pha.pa.us (Bruce Momjian) wrote: > D'Arcy J.M. Cain wrote: >> On Fri, 23 Apr 2004 11:07:20 -0400 >> Dave Cramer wrote: >> > Does the current implementation of pg_autovacuum have a way of setting >> > windows where it is allowed to vacuum? Many large 24/7 will only allow >> > vacuumming at certain times of the day. >> >> It seems to me that the point of pg_autovacuum would be to run 24/7 so >> that there is never big hit on the system. Perhaps it could be designed >> to throttle itself based on current system usage though. > > Or the number of connected backends, or both? This is what suggests to me the possibility that perhaps a good answer would be to redo it in some scripting language, and have the capability to either: a) Configure multiple targets via some language-specific approach (e.g. - reading Perl data structures, or some such thing) or b) Configure multiple targets via having the configuration stored in one database/schema. I would somewhat favor the latter. The initial design was set up jointly with a view to a) minimizing the number of extra dependancies, and b) ultimately being a stop-gap measure until a _proper_ scheme could get integrated into the postmaster. The existing implementation has remained sufficiently fragile that we have a hard time trusting it with the _important_ systems, and since those systems tend to involve multiple backends, it sure would be nice to have something that could get run across ALL of them, where we could be confident that it wouldn't demolish I/O at inconvenient times by trying to simultaneously vacuum huge tables on multiple backends. I have lately been working on some (not quite yet sufficiently generic) tools for managing sets of replication instances; I think I may want to take a similar "tack" on this. pg_autovacuum has been handy for systems that I _don't_ want to pay much attention to, but it hasn't been totally adequate for the more vital ones. -- If this was helpful, rate me http://cbbrowne.com/info/linuxdistributions.html A real patriot is the fellow who gets a parking ticket and rejoices that the system works.