Re: poor performance when recreating constraints on large tables - Mailing list pgsql-performance

From Tom Lane
Subject Re: poor performance when recreating constraints on large tables
Date
Msg-id 12692.1307392671@sss.pgh.pa.us
Whole thread Raw
In response to poor performance when recreating constraints on large tables  (Mike Broers <mbroers@gmail.com>)
Responses Re: poor performance when recreating constraints on large tables
List pgsql-performance
Mike Broers <mbroers@gmail.com> writes:
> I am in the process of implementing cascade on delete constraints
> retroactively on rather large tables so I can cleanly remove deprecated
> data.  The problem is recreating some foreign key constraints on tables of
> 55 million rows+ was taking much longer than the maintenance window I had,
> and now I am looking for tricks to speed up the process, hopefully there is
> something obvious i am overlooking.

maintenance_work_mem?

            regards, tom lane

pgsql-performance by date:

Previous
From: Mike Broers
Date:
Subject: poor performance when recreating constraints on large tables
Next
From: mark
Date:
Subject: not exits slow compared to not in. (nested loops killing me)