Re: "Constraint exclusion" is not general enough - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: "Constraint exclusion" is not general enough
Date
Msg-id 20060804193821.GR40481@pervasive.com
Whole thread Raw
In response to "Constraint exclusion" is not general enough  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: "Constraint exclusion" is not general enough
List pgsql-hackers
On Fri, Aug 04, 2006 at 02:40:30PM -0400, Tom Lane wrote:
> which it seems we ought to be bright enough to notice.  In particular
> I would argue that turning on constraint_exclusion ought to instruct
> the planner to catch this sort of thing, whereas when it's off we
> ought not expend the cycles.  I have a preliminary patch (below)
> that seems to fix it.

How many cycles are we talking about here? Is it even worth the GUC?

The most heavily loaded systems I've seen were doing on the order of 500
transactions a second (which would have been almost entirely
single-statement queries), so ISTM that you've got to be burning a
pretty good chunk of CPU time on planning before it becomes an issue.
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


pgsql-hackers by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: 8.2 features status
Next
From: David Fetter
Date:
Subject: Re: 8.2 features status