Re: poor performance when recreating constraints on large tables

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mike Broers <mbroers(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: poor performance when recreating constraints on large tables
Date: 2011-06-06 20:37:51
Message-ID: 12692.1307392671@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Mike Broers <mbroers(at)gmail(dot)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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message mark 2011-06-06 20:38:47 not exits slow compared to not in. (nested loops killing me)
Previous Message Mike Broers 2011-06-06 20:35:04 poor performance when recreating constraints on large tables