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

From Simon Riggs
Subject Re: Mini improvement: statement_cost_limit
Date
Msg-id 1217796241.3934.258.camel@ebony.t-mobile.de.
Whole thread Raw
In response to Re: Mini improvement: statement_cost_limit  ("Hans-Jürgen Schönig" <postgres@cybertec.at>)
Responses Re: Mini improvement: statement_cost_limit  ("Heikki Linnakangas" <heikki@enterprisedb.com>)
List pgsql-hackers
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.

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: patch: Add a separate TRUNCATE permission
Next
From: Zdenek Kotala
Date:
Subject: unnecessary code in_bt_split