X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 230F49FB1BB for ; Tue, 6 Jun 2006 16:30:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 46552-06 for ; Tue, 6 Jun 2006 16:30:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by postgresql.org (Postfix) with ESMTP id 178FD9FA13E for ; Tue, 6 Jun 2006 16:30:18 -0300 (ADT) Received: from smtp3.activestate.com (smtp3.activestate.com [192.168.3.19]) by smtp1.ActiveState.com (8.12.10/8.12.10) with ESMTP id k56JUGIW000633 for ; Tue, 6 Jun 2006 12:30:16 -0700 (envelope-from mischa@ca.sophos.com) Received: from [192.168.99.210] (mallet.activestate.com [192.168.99.210]) by smtp3.ActiveState.com (8.13.4/8.13.4) with ESMTP id k56JUG1C016583 for ; Tue, 6 Jun 2006 12:30:16 -0700 (envelope-from mischa@ca.sophos.com) Message-ID: <4485D9A1.30807@ca.sophos.com> Date: Tue, 06 Jun 2006 12:38:09 -0700 From: Mischa Sandberg Reply-To: mischa@ca.sophos.com User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: vacuuming problems continued References: <92d3a4950606010454y67293765o56001e8996975b45@mail.gmail.com> <20060605204151.GC7071@phlogiston.dyndns.org> <4485CECC.4040207@ca.sophos.com> <4485D5C3.7010803@commandprompt.com> In-Reply-To: <4485D5C3.7010803@commandprompt.com> 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: 200606/69 X-Sequence-Number: 19426 Joshua D. Drake wrote: >> - in our env, clients occasionally hit max_connections. This is a >> known and (sort of) desired pushback on load. However, that sometimes >> knocks pg_autovacuum out. > > That is when you use: > > superuser_reserved_connections Blush. Good point. Though, when we hit max_connections on 7.4.8 systems, it's been a lemonade-from-lemons plus that vacuuming didn't fire up on top of everything else :-) >> - db server goes down for any reason: same problem. > > I believe you can use > stats_reset_on_server_start = on We do. The problem is not the loss of pg_stat_user_tables.(n_tup_ins,...) It's the loss of pg_autovacuum's CountAtLastVacuum (and ...Analyze) numbers, which are kept in process memory. Never considered patching pg_autovacuum to just sleep and try again, rather than exit, on a failed db connection. -- Engineers think that equations approximate reality. Physicists think that reality approximates the equations. Mathematicians never make the connection.