Re: "Expiring" transactions?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Egor Shipovalov <pgsql_list(at)eonline(dot)ru>
Cc: Pgsql-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: "Expiring" transactions?
Date: 2003-09-25 02:28:52
Message-ID: 200309250228.h8P2Sqq29660@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Egor Shipovalov wrote:
> Is there a way to make transaction automatically COMMIT or ROLLBACK after
> certain period of time?
> I want website visitors to be able to page through search results using
> single cursor. Since users can leave the site at any time, I can't know when
> to end their transaction.
>
> I guess I can write a broker that gives each user a connection and tracks
> when he's gone, performing necessaty cleanup, but isn't there a simplier
> way?

We have statement_timeout, but not transaction_timeout.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2003-09-25 02:42:45 Re: Foreign key constraint accepted even when not same
Previous Message Bruce Momjian 2003-09-25 02:08:48 Re: Foreign key constraint accepted even when not same