Re: constraint exclusion analysis caching - Mailing list pgsql-hackers

From Gregory Stark
Subject Re: constraint exclusion analysis caching
Date
Msg-id 87d4nvef8t.fsf@oxford.xeocode.com
Whole thread Raw
In response to constraint exclusion analysis caching  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: constraint exclusion analysis caching  (Stephen Frost <sfrost@snowman.net>)
List pgsql-hackers
"Andrew Dunstan" <andrew@dunslane.net> writes:

> Actual execution of the query in question was talking one tenth of that
> time.
>...
> but in principle it seems silly to keep paying the same penalty over and
> over again.

I would think constraint_exclusion only really makes sense if you're spending
a lot more time executing than planning queries. Either that means you're
preparing queries once and then executing them many many times or you're
planning much slower queries where planning time is insignificant compared to
the time to execute them.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Get trained by Bruce Momjian - ask me about
EnterpriseDB'sPostgreSQL training!
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: constraint exclusion analysis caching
Next
From: Tom Lane
Date:
Subject: Re: [0/4] Proposal of SE-PostgreSQL patches