Re: How are foreign key constraints built?

From: Wes <wespvp(at)syntegra(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Postgresql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: How are foreign key constraints built?
Date: 2005-01-25 15:38:20
Message-ID: BE1BC40C.4952%wespvp@syntegra.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/23/05 1:01 PM, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> If you like you can try the operation with "set
> enable_seqscan = off", but I bet it will take longer.

Ouch! That was a big mistake. Since inquiring minds want to know, I
decided to give that a try. The expected outcome is to beat the heck out of
the index disks as it read one index and referenced the other to see if the
value existed. What appears to have happened is that it went through the
same process as before, but read each data record via the index. It still
created all the pgsql_tmp files, the data disk was still the heaviest hit
(expected no or little access there), and it beat the living daylights out
of my swap - pageins/outs like crazy. The I/O on the index disks was
negligible compared to the data and swap disks. I won't try that again...

Wes

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2005-01-25 15:57:11 Re: Cube
Previous Message Vincenzo Ciancia 2005-01-25 15:28:06 Re: Validating user-input to be inserted in regular expressions