Re: timeout implementation issues - Mailing list pgsql-hackers

From Tom Lane
Subject Re: timeout implementation issues
Date
Msg-id 24627.1018023544@sss.pgh.pa.us
Whole thread Raw
In response to Re: timeout implementation issues  (Jan Wieck <janwieck@yahoo.com>)
Responses Re: timeout implementation issues  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: timeout implementation issues  (Jan Wieck <janwieck@yahoo.com>)
Re: timeout implementation issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: timeout implementation issues  ("Hiroshi Inoue" <Inoue@tpf.co.jp>)
List pgsql-hackers
Jan Wieck <janwieck@yahoo.com> writes:
>     Could  we  get  out  of  this  by  defining that "timeout" is
>     automatically reset at next statement end?

I was hoping to avoid that, because it seems like a wart.  OTOH,
it'd be less of a wart than the global changes of semantics that
Bruce is proposing :-(

How exactly would you make this happen?  The simplest way I can think of
to do it (reset timeout in outer loop in postgres.c) would not work,
because it'd reset the timeout as soon as the SET statement completes.
How would you get the setting to survive for exactly one additional
statement?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: PQescapeBytea is not multibyte aware
Next
From: Tom Lane
Date:
Subject: Re: PQescapeBytea is not multibyte aware