Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1B869508C4F for ; Sat, 24 Dec 2011 10:39:57 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1ReSlO-0005mo-SB for pgsql-bugs@postgresql.org; Sat, 24 Dec 2011 14:39:56 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBOEdbAl013481; Sat, 24 Dec 2011 09:39:38 -0500 (EST) To: Daniel Migowski cc: "pgsql-bugs@postgresql.org" Subject: Re: Cannot drop database because of AUTOVACUUM In-reply-to: <41ED3F5450C90F4D8381BC4D8DF6BBDC60CCE8C5@EXCHANGESERVER.ikoffice.de> References: <41ED3F5450C90F4D8381BC4D8DF6BBDC60CCE8C5@EXCHANGESERVER.ikoffice.de> Comments: In-reply-to Daniel Migowski message dated "Sat, 24 Dec 2011 12:06:25 +0000" Date: Sat, 24 Dec 2011 09:39:37 -0500 Message-ID: <13480.1324737577@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -4.5 (----) X-Archive-Number: 201112/217 X-Sequence-Number: 32028 Daniel Migowski writes: > I have a rare problem. I just restored a large database, and found out I made an error. Now I want to drop it, but can't do it because of the autovacuum process, running for minutes now, which i don't want to kill. Um ... if you're going to drop the database, why would you care about letting an autovacuum complete? Its work would only be thrown away anyway. > Isn't it possible to stop it from running if this is the only process connected to a database when I want to drop it? An autovacuum process should get killed automatically if you issue a DROP against its database (or table, for that matter). If there's a bug here, you've not explained what it is. regards, tom lane