Re: Feature request: Truncate table

Поиск
Список
Период
Сортировка
От Billy O'Connor
Тема Re: Feature request: Truncate table
Дата
Msg-id 20020612183709.520AD18@dps7.oconnoronline.net
обсуждение исходный текст
Ответ на Feature request: Truncate table  ("Dann Corbit" <DCorbit@connx.com>)
Ответы Re: Feature request: Truncate table  (Larry Rosenman <ler@lerctr.org>)
Список pgsql-hackers
Deletion of data from a PostgreSQL table is very slow.
  It would be nice to have a very fast delete like "truncate table."
  Now, truncate is a very dangerous command because it is not logged (but  the same is true for other operations like
bulkcopy and select into).  So one needs to be careful how this command is granted.  The same damage  (accidental
deletionof all data) can be done by drop table just as  easily.
 
  I frequently have to do this right now in PostgreSQL, but I simply  emulate it by drop table/create table.

What is a TRUNCATE TABLE but a drop create anyway?  Is there some
technical difference?

--
Billy O'Connor


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

Предыдущее
От: Larry Rosenman
Дата:
Сообщение: Re: Feature request: Truncate table
Следующее
От: "Dann Corbit"
Дата:
Сообщение: Re: Feature request: Truncate table