Re: timeout implementation issues - Mailing list pgsql-hackers

From Jessica Perry Hekman
Subject Re: timeout implementation issues
Date
Msg-id Pine.LNX.4.21.0204021415170.11943-100000@atalanta.dynamicdiagrams.com
Whole thread Raw
In response to Re: timeout implementation issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: timeout implementation issues  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
On Tue, 2 Apr 2002, Bruce Momjian wrote:

>     BEGIN WORK;
>     query;
>     SET statement_timeout = 4;
>     query;
>     SET statement_timeout = 0;
>     query;
>     COMMIT;
>     SET statement_timeout = 0;
> 
> Basically, it does the reset twice, once assuming the transaction
> doesn't abort, and another assuming it does abort.  Is this something
> that the JDBC and ODBC drivers can do automatically?

I can't speak for ODBC. Seems like in JDBC, Connection::commit() would
call code clearing the timeout, and Statement::executeQuery() and
executeUpdate() would do the same.

j



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: Dblink and ISDN
Next
From: Bruce Momjian
Date:
Subject: Re: timeout implementation issues