transaction idle timeout in 7.4.5 and 8.0.0beta2 - Mailing list pgsql-hackers

From Szima Gábor
Subject transaction idle timeout in 7.4.5 and 8.0.0beta2
Date
Msg-id Pine.LNX.4.50.0409170846170.989-100000@vigo.sygma.net
Whole thread Raw
Responses Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  ("Jeroen T. Vermeulen" <jtv@xs4all.nl>)
Re: transaction idle timeout in 7.4.5 and 8.0.0beta2  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Hi all,

I was implement the "transaction idle timeout" function in PostgreSQL
(version 7.4.5 and 8.0.0beta2)

test=# SET trans_idle_timeout=10;
SET
test=# BEGIN;
BEGIN

(ps)
...
postgres: sygma test [local] idle in transaction (3)
postgres: sygma test [local] idle in transaction (2)
postgres: sygma test [local] idle in transaction (1)
postgres: sygma test [local] idle in transaction (aborted)

test=# INSERT INTO test (a,b) VALUES (1,'a');
ERROR:  current transaction is aborted, commands ignored until end of transaction block


The code is very simple and stable.

Changed files:

include/storage/proc.h
backend/libpq/pqcomm.c
backend/libpq/be-secure.c
backend/utils/misc/guc.c

TODO: SSL connection, manual, psql help & tab-competition

Do you interest it?


Regards, Sygma


pgsql-hackers by date:

Previous
From: "Michael Paesold"
Date:
Subject: Disabling bgwriter on my notebook
Next
From: Marc Colosimo
Date:
Subject: Re: tweaking MemSet() performance - 7.4.5