Re: sql command to drop everything

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bryan Irvine <bryan(dot)irvine(at)kingcountyjournal(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: sql command to drop everything
Date: 2003-12-07 00:53:35
Message-ID: 200312070053.hB70rZ213301@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Paul Ganainm 2003-12-08 08:08:12 Re: COMPUTED BY fields or equivalent?
Previous Message NK 2003-12-07 00:49:40 Help! Parser Stage: Get The Columns Of the Table