pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig A. James <cjames@modgraph-usa.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Can't drop tablespace or user after disk gone
Date: Wed, 04 Apr 2007 12:57:13 -0400
Message-ID: <22928.1175705833@sss.pgh.pa.us> (raw)
In-Reply-To: <4613D5BC.2070607@modgraph-usa.com>
References: <9C0858F5-0A48-4AF9-80FF-E4BA14F0F965@ohloh.net>
	<E1HYs6Y-0008O5-SN@elasmtp-banded.atl.sa.earthlink.net>
	<E1HYsBX-0006ZE-JG@elasmtp-banded.atl.sa.earthlink.net>
	<4613053F.5070401@polimetrix.com>
	<DF6C723E-7362-4173-8309-B8AAFC968E2C@ohloh.net>
	<4613C14A.4020703@commandprompt.com>
	<4613C54C.4050207@kaltenbrunner.cc>
	<4613C6F1.3090009@commandprompt.com>
	<4613CB60.6030505@kaltenbrunner.cc>
	<4613D5BC.2070607@modgraph-usa.com>

"Craig A. James" <cjames@modgraph-usa.com> writes:
> I had a 'scratch' database for testing, which I deleted, and then disk went out.  No problem, no precious data.  But now I can't drop the tablespace, or the user who had that as the default tablespace.
> I thought about removing the tablespace from pg_tablespaces, but it seems wrong to be monkeying with the system tables.  I still can't drop the user, and can't drop the tablespace.  What's the right way to clear out Postgres when a disk fails and there's no reason to repair the disk?

Probably best to make a dummy postgres-owned directory somewhere and
repoint the symlink at it, then DROP TABLESPACE.

CVS HEAD has recently been tweaked to be more forgiving of such cases...

			regards, tom lane



view thread (2+ messages)

Message-ID: <22928.1175705833@sss.pgh.pa.us>
Permalink:  ../22928.1175705833@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/22928.1175705833@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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, cjames@modgraph-usa.com
  Subject: Re: Can't drop tablespace or user after disk gone
  In-Reply-To: <22928.1175705833@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