Re: [PERFORM] Foreign key performance - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PERFORM] Foreign key performance
Date
Msg-id 1966.1050645964@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PERFORM] Foreign key performance  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Responses Re: [PERFORM] Foreign key performance
List pgsql-hackers
Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> It appears (from some not terribly scientific experiments - see below)
> that it's likely to be related to managing the deferred trigger queue
> given that in my case at least running the constraints non-deferred was
> negligible in comparison.

At one time the deferred-trigger queue had an O(N^2) behavioral problem
for large N = number of pending trigger events.  But I thought we'd
fixed that.  What's the test case exactly?  Can you get a profile with
gprof?

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg 7.3.2 assert statement fails. process terminated
Next
From: Kevin Brown
Date:
Subject: Re: For the ametures. (related to "Are we losing momentum?")