Function to total reset a schema

Поиск
Список
Период
Сортировка
От Surfing
Тема Function to total reset a schema
Дата
Msg-id 4DE1F7DC.3080700@gmail.com
обсуждение исходный текст
Ответы Re: Function to total reset a schema  (Scott Marlowe <scott.marlowe@gmail.com>)
Re: Function to total reset a schema  (Thomas Kellerer <spam_eater@gmx.net>)
Re: Function to total reset a schema  (Rob Sargent <robjsargent@gmail.com>)
Список pgsql-sql
Hi all,
I need to write a function that totally empty a schema.

So I have written a TRUNCATE statement for each table and set to 0 each 
sequence.
Btw, it could be good to execute a vacuum statement on each table, but 
from within the function this is not allowed.

Is there a way to obtain the same result in another way (without using 
the vacuum)?

Thanks



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

Предыдущее
От: Piotr Czekalski
Дата:
Сообщение: Re: Re: 500KB PDF files for postgresql8.3, which is the most efficient way?
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Function to total reset a schema