Re: constraint exclusion analysis caching

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: constraint exclusion analysis caching
Date: 2008-05-09 13:05:09
Message-ID: 1210338309.22165.7.camel@PCD12478
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 2008-05-09 at 08:47 -0400, Andrew Dunstan wrote:
> However, I wondered if we couldn't mitigate this by caching the results
> of constraint exclusion analysis for a particular table + condition. I
> have no idea how hard this would be, but in principle it seems silly to
> keep paying the same penalty over and over again.

This would be a perfect candidate for the plan-branch based on actual
parameters capability, in association with globally cached plans
mentioned here:

http://archives.postgresql.org/pgsql-hackers/2008-04/msg00920.php

Cheers,
Csaba.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Fetter 2008-05-09 13:33:04 Re: Auto-updated fields
Previous Message Andrew Dunstan 2008-05-09 12:47:26 constraint exclusion analysis caching