pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dick Davies <rasputnik@hellooperator.net>
To: Christopher Browne <cbbrowne@acm.org>
Cc: PostgreSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: empty a database
Date: Wed, 16 Feb 2005 23:15:52 +0000
Message-ID: <20050216231552.GH64242@eris.tenfour> (raw)
In-Reply-To: <m3y8dpodn7.fsf@knuth.knuth.cbbrowne.com>
References: <20050215155148.GZ63378@eris.tenfour>
	<m3y8dpodn7.fsf@knuth.knuth.cbbrowne.com>

* Christopher Browne <cbbrowne@acm.org> [0223 20:23]:
> Clinging to sanity, rasputnik@hellooperator.net (Dick Davies) mumbled into her beard:
> > Is there a neat way to clean out a database via SQL commands?
> >
> > i.e. get rid of tables, sequences, integers, etc.
> >
> > At present I'm using dropdb/createdb, but thats' far from ideal
> > and I think it's causing postgres to do more mork than it needs to...
> 
> If you truly need for all of the objects to go away, dropping the
> database seems like a reasonable way to do this.  I'm not sure what
> work you are imagining is "too much" or "unnecessary."

It just seems a bit extreme, but the alternatives are all a bit gnarly,
so think I'll live with it....

Thanks for all the suggestions, though, everybody.
 
-- 
'The old 'give em a Linux box and they think they're Jean-Luc Picard' syndrome.'
		-- Pete Bentley
Rasputin :: Jack of All Trades - Master of Nuns



view thread (7+ messages)

Message-ID: <20050216231552.GH64242@eris.tenfour>
Permalink:  ../20050216231552.GH64242@eris.tenfour/
Also on:    postgresql.org/message-id/20050216231552.GH64242@eris.tenfour

 · 

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-admin@postgresql.org
  Cc: rasputnik@hellooperator.net, cbbrowne@acm.org
  Subject: Re: empty a database
  In-Reply-To: <20050216231552.GH64242@eris.tenfour>
  References: <20050215155148.GZ63378@eris.tenfour> <m3y8dpodn7.fsf@knuth.knuth.cbbrowne.com> <20050216231552.GH64242@eris.tenfour>

* 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