Re: sql command to drop everything - Mailing list pgsql-novice

From Bruce Momjian
Subject Re: sql command to drop everything
Date
Msg-id 200312070053.hB70rZ213301@candle.pha.pa.us
Whole thread Raw
In response to sql command to drop everything  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
List pgsql-novice
Bryan Irvine wrote:
> Is there a SQL command to delete everything (including the tables) from
> a db?  Not a complete drop so that the db doesn't exist anymore, but
> just so that there's nothing in it.

Nope, just drop/recreate.  It is faster.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: COMPUTED BY fields or equivalent?
Next
From: Paul Ganainm
Date:
Subject: Re: COMPUTED BY fields or equivalent?