"Jeffrey W. Baker" <jwbaker@xxxxxxx> writes: > I was thinking that it might be nice to be able to tell postgres to > refuse to execute any plan with an estimated cost above some threshold. What you suggest has been suggested before, and I might think it was a good idea if I trusted the planner's cost estimates more ;-) There's always statement_timeout. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match