pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: andrew@pillette.com
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Unbearably slow cascading deletes
Date: Tue, 20 Jul 2004 12:59:40 -0700
Message-ID: <200407201959.i6KJxe908906@pillette.com> (raw)

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.



view thread (6+ messages)  latest in thread

Message-ID: <200407201959.i6KJxe908906@pillette.com>
Permalink:  ../200407201959.i6KJxe908906@pillette.com/
Also on:    postgresql.org/message-id/200407201959.i6KJxe908906@pillette.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: andrew@pillette.com, sszabo@megazone.bigpanda.com
  Subject: Re: Unbearably slow cascading deletes
  In-Reply-To: <200407201959.i6KJxe908906@pillette.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox