From: | Tim McAuley <mcauleyt(at)tcd(dot)ie> |
---|---|
To: | Alex <alex(at)meerkatsoft(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Cannot Delete |
Date: | 2003-09-18 15:52:34 |
Message-ID: | 3F69D4C2.90105@tcd.ie |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Not sure about 2.5 million records but try running "VACUUM ANALYSE"
before the delete and during (every now and then).
Had the same problem with 100,000 records and it did the trick nicely.
> Hi,
> hi have a table with 2.5 million records which i try do delete. i have
> several constraints on it too.
> i tried to delete the records using delete but it does not seem to
> work. the delete runs forever. hrs...
> i cannot truncate it as it complains about foreign keys.
>
> What is the problem ?
>
> Thanks
> Alex
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-09-18 16:04:17 | Re: psql and blob |
Previous Message | Alex | 2003-09-18 15:40:00 | Cannot Delete |