Re: truncate all tables?

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: truncate all tables?
Дата
Msg-id 42C27249.10800@archonet.com
обсуждение исходный текст
Ответ на truncate all tables?  (Zlatko Matić <zlatko.matic1@sb.t-com.hr>)
Ответы Re: truncate all tables?  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-general
Zlatko Matić wrote:
> How could I truncate, delete all content of all tables in one step ?

Something like this?

pg_dump --schema-only mydb > mydb.schema.dump
dropdb mydb
psql -f mydb.schema.dump mydb

--
   Richard Huxton
   Archonet Ltd


В списке pgsql-general по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: truncate all tables?
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: truncate all tables?