Re: Mini improvement: statement_cost_limit - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Mini improvement: statement_cost_limit
Date
Msg-id 4897F510.20702@enterprisedb.com
Whole thread Raw
In response to Re: Mini improvement: statement_cost_limit  (Simon Riggs <simon@2ndquadrant.com>)
List pgsql-hackers
Simon Riggs wrote:
> On Sun, 2008-08-03 at 22:09 +0200, Hans-Jürgen Schönig wrote:
> 
>>> Another alternative would be to have a plugin that can examine the  
>>> plan
>>> immediately after planner executes, so you can implement this  
>>> yourself,
>>> plus some other possibilities.
>>>
> 
>> this would be really fancy.
>> how could a plugin like that look like?
> 
> Hmm...thinks: exactly like the existing planner_hook().
> 
> So, rewrite this as a planner hook and submit as a contrib module.

Now that's a good idea!

I personally don't think this feature is a good idea, for all the 
reasons others have mentioned, but as a pgfoundry project it can be 
downloaded by those who want it, and perhaps prove its usefulness for 
others as well.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


pgsql-hackers by date:

Previous
From: ITAGAKI Takahiro
Date:
Subject: Re: NDirectFileRead and Write
Next
From: Simon Riggs
Date:
Subject: Re: Automatic Client Failover