Re: Deleting millions of rows

Поиск
Список
Период
Сортировка
От David Wilson
Тема Re: Deleting millions of rows
Дата
Msg-id e7f9235d0902021257s6d12d315kde27976578dee48d@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Deleting millions of rows  (Brian Cox <brian.cox@ca.com>)
Список pgsql-performance
On Mon, Feb 2, 2009 at 3:37 PM, Brian Cox <brian.cox@ca.com> wrote:
> David Wilson [david.t.wilson@gmail.com] wrote:
>
>> Is this table the target of any foreign keys?
>
> There are 2 "on delete cascade" FKs that reference this table.

I believe that's the source of your memory issues. I think TRUNCATE
may handle this more effectively; alternately you can handle the
cascading yourself in these cases. (And, as Dave Dutcher mentioned,
TRUNCATE is definitely the way to go for full-table wipes).


--
- David T. Wilson
david.t.wilson@gmail.com

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

Предыдущее
От: Brian Cox
Дата:
Сообщение: Re: Deleting millions of rows
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: Deleting millions of rows