Re: Simple DELETE on modest-size table runs 100% CPU forever

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Craig James <cjames(at)emolecules(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: Simple DELETE on modest-size table runs 100% CPU forever
Date: 2019-11-14 22:22:58
Message-ID: 20191114222258.GA23194@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On 2019-Nov-14, Craig James wrote:

> I'm completely baffled by this problem: I'm doing a delete that joins three
> modest-sized tables, and it gets completely stuck: 100% CPU use forever.

Do you have any FKs there? If any delete is cascading, and you don't
have an index on the other side, it'd do tons of seqscans.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Lewis 2019-11-14 22:24:47 Re: Simple DELETE on modest-size table runs 100% CPU forever
Previous Message Craig James 2019-11-14 22:19:51 Simple DELETE on modest-size table runs 100% CPU forever