Re: BUG #1398: Delete takes a long time & explain disagrees with \timing - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1398: Delete takes a long time & explain disagrees with \timing
Date
Msg-id 23535.1105715495@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1398: Delete takes a long time & explain disagrees with \timing  ("Karl Martindale" <karl@cyber.com.au>)
List pgsql-bugs
"Karl Martindale" <karl@cyber.com.au> writes:
> Deletes from this particular table take a long time (~5 min for 6000rows)

This usually occurs when you have another table with a foreign key
reference to this one, and the referencing column either has no index or
isn't of the exact same datatype as the referenced column.  The FK
checks then are forced to use sequential scans instead of index probes
:-(

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Bug Report
Next
From: Bruno Wolff III
Date:
Subject: Re: BUG #1388: documentation/announcement suggestion