pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Migowski <dmigowski@ikoffice.de>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: Cannot drop database because of AUTOVACUUM
Date: Sat, 24 Dec 2011 09:39:37 -0500
Message-ID: <13480.1324737577@sss.pgh.pa.us> (raw)
In-Reply-To: <41ED3F5450C90F4D8381BC4D8DF6BBDC60CCE8C5@EXCHANGESERVER.ikoffice.de>
References: <41ED3F5450C90F4D8381BC4D8DF6BBDC60CCE8C5@EXCHANGESERVER.ikoffice.de>

Daniel Migowski <dmigowski@ikoffice.de> 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



view thread (2+ messages)

Message-ID: <13480.1324737577@sss.pgh.pa.us>
Permalink:  ../13480.1324737577@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13480.1324737577@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, dmigowski@ikoffice.de
  Subject: Re: Cannot drop database because of AUTOVACUUM
  In-Reply-To: <13480.1324737577@sss.pgh.pa.us>
  References: <41ED3F5450C90F4D8381BC4D8DF6BBDC60CCE8C5@EXCHANGESERVER.ikoffice.de> <13480.1324737577@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox