Re: implementing query timeout - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: implementing query timeout
Date
Msg-id 200207111620.g6BGKjr24430@candle.pha.pa.us
Whole thread Raw
In response to Re: implementing query timeout  (Jan Wieck <JanWieck@Yahoo.com>)
List pgsql-patches
Jan Wieck wrote:
> Bruce Momjian wrote:
> >
> > Jan Wieck wrote:
>
> > > Statements is everything. DDL- and DML-statements. Query is IMHO synonym
> > > for DML-statement. So query_timeout is the right term.
> >
> > But the timeout is for any statement, not just SELECT/UPDATE, etc, so it
> > sounds like you are voting for 'statement'.
>
> No, I am voting for 'query'. I don't see the point in allowing a
> timeout for utility statements. Why would someone want a timeout
> on CREATE INDEX, COPY or VACUUM? Allowing that would IMHO be
> calling for more trouble than necessary.

Seems pretty arbitrary to time just DML and not DLL.  I can even imagine
this for VACUUM FULL where you don't want it running for a long time.
It is under their control and they can turn it off if they don't want it
for those statements.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-patches by date:

Previous
From: Jan Wieck
Date:
Subject: Re: implementing query timeout
Next
From: Bruce Momjian
Date:
Subject: Re: implementing query timeout