Re: transaction idle timeout

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Szima Gábor <sygma(at)tesla(dot)hu>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: transaction idle timeout
Date: 2004-09-22 16:41:12
Message-ID: 12651.1095871272@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

=?ISO-8859-1?Q?Szima_G=E1bor?= <sygma(at)tesla(dot)hu> writes:
> Here is a patch for backend to allow transaction idle timeout.

I don't think this is a good idea in the first place. But even if it
were, this patch is a mess. secure_read() has no business doing the
things you have made it do, either messing with the PS display or
directly calling AbortCurrentTransaction; the patch doesn't work for SSL
connections (and in fact probably actively breaks them); it breaks
handling of all I/O errors other than timeout; it significantly
increases the load imposed by an idle connection (since your
implementation causes a waiting backend to wake up once a second, even
if the feature isn't in use); and there's no documentation.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Greg Stark 2004-09-22 17:38:00 Re: 7.4 vs 7.3 ( hash join issue )
Previous Message Szima Gábor 2004-09-22 16:17:50 transaction idle timeout