From: Rudi Starcevic <rudi@oasis.net.au>
Cc: Postgres Performance <pgsql-performance@postgresql.org>
Subject: Re: constraint with reference to the same table
Date: Thu, 15 May 2003 10:53:09 +1000
Message-ID: <3EC2E4F5.5020704@oasis.net.au> (raw)
In-Reply-To: <20030515001239.GC1549@nordlb.lv>
References: <20030514162559.O51040-100000@megazone23.bigpanda.com>
<3EC2D7D5.1010404@oasis.net.au>
<20030515001239.GC1549@nordlb.lv>
Victor,
I see.
Good point.
Thank you kindly.
Regards
Rudi.
Victor Yegorov wrote:
>* Rudi Starcevic <rudi@oasis.net.au> [15.05.2003 02:59]:
>
>
>>Hi,
>>
>>Can I confirm what this means then ..
>>
>>For large table's each column with ref. inegritry I should create an
>>index on those columns ?
>>
>>
>
>I think, that indicies are needed only at delete stage to decrease search
>time of possible referencing rows.
>Not only, of course, but when we speak about
>INSERT/UPDATE/DELETE data it is so.
>
>On the other side, indicies increases total query runtime, because for
>each row deleted/updated/inserted it'll be necessary to update each index.
>
>In my case, I at first drop "cyclic" constraints, do the job and then
>restore them.
>
>
>
>
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-performance@postgresql.org
Cc: rudi@oasis.net.au
Subject: Re: constraint with reference to the same table
In-Reply-To: <3EC2E4F5.5020704@oasis.net.au>
References: <20030514162559.O51040-100000@megazone23.bigpanda.com> <3EC2D7D5.1010404@oasis.net.au> <20030515001239.GC1549@nordlb.lv> <3EC2E4F5.5020704@oasis.net.au>
* 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