Re: Server error - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Server error
Date
Msg-id 20030508151105.V48282-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Server error  (Dennis Gearon <gearond@cvc.net>)
List pgsql-general
On Thu, 8 May 2003, Dennis Gearon wrote:

> it does a full scan of the table's child and parent columns upon
> creation of a foreign key?

It currently runs the trigger once per row in the referencing table.
Doing a single select with not exists will almost certainly be faster, but
that's waiting for someone else to decide to do it or me to get time to do
it. :)

Some form of check is required, AFAIK however, because if the constraint
isn't satisified at the end of the alter table an error should be thrown.


pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: Server error
Next
From: Kathy Zhu
Date:
Subject: Re: jdbc connection process size