From: Arnau <arnaulist@andromeiberica.com>
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: Delete performance
Date: Wed, 22 Feb 2006 10:09:50 +0100
Message-ID: <43FC2A5E.4080601@andromeiberica.com> (raw)
In-Reply-To: <15417.1140534087@sss.pgh.pa.us>
References: <1c66bda80602202302u2f6f6bc0jcfc3c728940ad2d0@mail.gmail.com>
<15417.1140534087@sss.pgh.pa.us>
Hi all,
> The usual cause of slow deletes is that (a) the table is the target of
> some foreign key references from other large tables, and (b) the
> referencing columns in those tables aren't indexed.
This is a thing I don't understand, as far as I know the foreign keys
references to primary keys and postgresql creates itself and index over
the primary key, so those columns always should be indexed. Taking into
account Tom's observation I'm missing something, could you explain it to
all of us :)
Thanks
--
Arnau
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: arnaulist@andromeiberica.com, tgl@sss.pgh.pa.us
Subject: Re: Delete performance
In-Reply-To: <43FC2A5E.4080601@andromeiberica.com>
References: <1c66bda80602202302u2f6f6bc0jcfc3c728940ad2d0@mail.gmail.com> <15417.1140534087@sss.pgh.pa.us> <43FC2A5E.4080601@andromeiberica.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