Re: PREPARE TRANSACTION and webapps

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: PREPARE TRANSACTION and webapps
Дата
Msg-id 87oe4ks3ka.fsf@stark.xeocode.com
обсуждение исходный текст
Ответ на Re: PREPARE TRANSACTION and webapps  ("Guy Rouillier" <guyr@masergy.com>)
Список pgsql-general
"Guy Rouillier" <guyr@masergy.com> writes:

> Having worked with web-based, transaction-oriented applications for
> almost 10 years now, I don't see any justification for holding an actual
> database transaction open between HTTP requests.  As Tom correctly
> points out, there is no guarantee whatsoever that the end user will ever
> complete such a transaction.

Indeed I've never needed them either. But then I've never worked on a banking
system or an airline ticket reservations system, or anything that would need
anything but the simplest of transactions. So I've always found a way to
finesse the issue and avoid entirely the entire field of having to deal with
expiring sessions and conflict resolution.

But the fact that these problems exist don't militate for either database
transactions or an application level reimplementation of transactions. In
either case you'll have to deal with expiring and rolling back old
transactions and with resolving conflicts.

I take it as a given that if suspended transactions were ever to appear people
would expect a system table that let them list suspended transactions and how
when they were suspended. Otherwise they just wouldn't be very manageable.

--
greg

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

Предыдущее
От: Chris Browne
Дата:
Сообщение: Re: Rebranding PostgreSQL
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: Rebranding PostgreSQL