Re: Unbearably slow cascading deletes - Mailing list pgsql-performance

From andrew@pillette.com
Subject Re: Unbearably slow cascading deletes
Date
Msg-id 200407201959.i6KJxe908906@pillette.com
Whole thread Raw
In response to Unbearably slow cascading deletes  (andrew@pillette.com)
List pgsql-performance
PREPARE c(int4) AS DELETE FROM childtable WHERE fk=$1;
EXPLAIN EXECUTE c(-1);

gives an index scan.

PREPARE c2(int4) AS DELETE FROM parenttable WHERE key=$1;
EXPLAIN EXECUTE c2(1);

gives a seq scan on the parent table (itself a little curious) and no explanation of what the triggers are doing.

pgsql-performance by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: Unbearably slow cascading deletes
Next
From: andrew@pillette.com
Date:
Subject: Re: Unbearably slow cascading deletes