Re: "truncate all"?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "truncate all"?
Дата
Msg-id 6986.1060013965@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "truncate all"?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: "truncate all"?  (Josh Berkus <josh@agliodbs.com>)
Re: "truncate all"?  (Robert Treat <xzilla@users.sourceforge.net>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> This this a TODO?  Keep in mind if we follow the syntax of VACUUM and
> (7.4) CLUSTER, that the all-database truncate would just be "TRUNACATE".
> That seems very risky to me.  I wonder if the risk is worth adding this
> feature.

I wouldn't care for that either.  The prior suggestion of "TRUNCATE tab
CASCADE" (to truncate any tables with FK dependencies on the original
target, instead of failing) seems more reasonable.
        regards, tom lane


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

Предыдущее
От: "scott.marlowe"
Дата:
Сообщение: Re: "truncate all"?
Следующее
От: "Shridhar Daithankar"
Дата:
Сообщение: Re: "truncate all"?