Re: sql command to drop everything

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: sql command to drop everything
Дата
Msg-id 200312070053.hB70rZ213301@candle.pha.pa.us
обсуждение исходный текст
Ответ на sql command to drop everything  (Bryan Irvine <bryan.irvine@kingcountyjournal.com>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COMPUTED BY fields or equivalent?
Следующее
От: Paul Ganainm
Дата:
Сообщение: Re: COMPUTED BY fields or equivalent?