From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shaun Thomas <sthomas@townnews.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cost limit.
Date: Fri, 18 May 2001 12:21:47 -0400
Message-ID: <19867.990202907@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.30.0105171547590.6309-100000@hamster.lee.net>
References: <Pine.LNX.4.30.0105171547590.6309-100000@hamster.lee.net>
Shaun Thomas <sthomas@townnews.com> writes:
> I can't seem to find it in the docs, so I'll ask here. Is there a
> way in postgres to impose a limit on query costs? I'd noticed some
> horribly disfigured queries hitting my poor database from one of our
> developers, and corrected him. But many of our users are not so
> easily contacted. What I want to know is if there's a configuration
> parameter or source patch that will allow me to disallow a query
> execution if the pre-execution cost estimation is too high.
Given the inherent inaccuracy of the cost estimates, I'd be real
hesitant to rely on them to suppress overly-expensive queries.
What might make sense is a time limit on execution (after x amount
of time, give up and cancel the query). No one's put such a thing
into the backend AFAIK. Note you could implement such a time limit
purely on the client side, which might be an easier and more flexible
way to go.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, sthomas@townnews.com
Subject: Re: Cost limit.
In-Reply-To: <19867.990202907@sss.pgh.pa.us>
References: <Pine.LNX.4.30.0105171547590.6309-100000@hamster.lee.net> <19867.990202907@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox