"Jeffrey W. Baker" <jwbaker@acm.org> 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