Re: Effects of dropping a large table

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Effects of dropping a large table
Дата
Msg-id 20230723095138.vrlw4jlbafy6iktn@hjp.at
обсуждение исходный текст
Ответ на Re: Effects of dropping a large table  (Rob Sargent <robjsargent@gmail.com>)
Ответы Re: Effects of dropping a large table  (Gus Spier <gus.spier@gmail.com>)
Список pgsql-general
On 2023-07-22 16:37:39 -0400, Gus Spier wrote:
> Isn’t this a perfect opportunity to use the TRUNCATE command to
> quickly remove the data? And follow up by deleting the now empty
> tables?

What's the advantage of first truncating and then deleting a table over
just deleting it?

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

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

Предыдущее
От: "Wen Yi"
Дата:
Сообщение: [Beginner Question]Is there way to test the postgres's kernel function?
Следующее
От: Gus Spier
Дата:
Сообщение: Re: Effects of dropping a large table