Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 9BE371337B56 for ; Tue, 16 Nov 2010 15:09:54 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 11322-04 for ; Tue, 16 Nov 2010 19:09:47 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 4B69B1335B36 for ; Tue, 16 Nov 2010 15:09:47 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id 37011348023; Tue, 16 Nov 2010 11:09:40 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at commandprompt.com Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nBp2wZgvAFBd; Tue, 16 Nov 2010 11:09:38 -0800 (PST) Received: from perhan.alvh.no-ip.org (unknown [190.95.28.71]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id A24FB348022; Tue, 16 Nov 2010 11:09:37 -0800 (PST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 945016E621; Tue, 16 Nov 2010 16:09:34 -0300 (CLST) Content-Type: text/plain; charset=UTF-8 Cc: Tom Lane , pgsql-admin Subject: Re: Autovacuum seems to block database: WARNING worker took too long to start From: Alvaro Herrera To: =?utf-8?q?Pablo_Delgado_D=C3=ADaz-Pache?= In-reply-to: References: <6991.1289762128@sss.pgh.pa.us> <1289918622-sup-8461@alvh.no-ip.org> Date: Tue, 16 Nov 2010 16:09:34 -0300 Message-Id: <1289934330-sup-4464@alvh.no-ip.org> User-Agent: Sup/git Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201011/137 X-Sequence-Number: 36103 Excerpts from Pablo Delgado Díaz-Pache's message of mar nov 16 12:18:09 -0300 2010: > Not sure what you mean. > > Once we start getting that error in the postgres log, there is no autovacuum > entry. Only that error message once every minute (and as i wrote in my last > email, the same message all the time). Yeah. This means that the autovacuum launcher daemon is still running and trying to schedule new jobs, but it's not able to for some reason. When it tries to start a new one, it sees the old one still waiting to start running; and then it logs this message. To start a new job, what it does is send a signal to postmaster and wait for it to create a child process. This is the part that's not working. > The question is what is causing postgres to stop working. Autovacuum or > another reason? If it's another reason ... what could it be? I have no idea what's going on. I have never seen this problem. If you see it happen again, please get a stacktrace from postmaster; and/or strace it. -- Álvaro Herrera The PostgreSQL Company - Command Prompt, Inc. PostgreSQL Replication, Consulting, Custom Development, 24x7 support