Re: Long-running DELETE

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Long-running DELETE
Дата
Msg-id 20020115211207.I39844-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Long-running DELETE  (jboes@nexcerpt.com (Jeff Boes))
Ответы Re: Long-running DELETE  (Jeff Boes <jboes@nexcerpt.com>)
Список pgsql-sql
On 15 Jan 2002, Jeff Boes wrote:

> Okay, this is really starting to fry me:
>
> I'm trying to delete 1000 rows from a table which is referenced by
> several different other tables as a foreign key.  I've turned on
> debug_print_query to help track this down.  When I do deletes from
> some tables, I can delete hundreds of rows per second.  When I delete
> from the main table, it's about 1 row per second.  I've turned off
> every trigger in the database:
>
> update pg_triggers set tgenabled=false;

I don't think tgenabled works.  You'll probably need to set reltriggers to
0 on the pg_class row for the table (and then reset it to the correct
value afterwards).




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

Предыдущее
От: jboes@nexcerpt.com (Jeff Boes)
Дата:
Сообщение: Long-running DELETE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Long-running DELETE