Re: "Expiring" transactions?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: "Expiring" transactions?
Дата
Msg-id 200309250228.h8P2Sqq29660@candle.pha.pa.us
обсуждение исходный текст
Ответ на "Expiring" transactions?  ("Egor Shipovalov" <pgsql_list@eonline.ru>)
Ответы Re: "Expiring" transactions?  (Gaetano Mendola <mendola@bigfoot.com>)
Список 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@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

В списке pgsql-general по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Foreign key constraint accepted even when not same
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Foreign key constraint accepted even when not same