Re: [RESEND] Transaction auto-abort causes grief with Spring Framework

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: [RESEND] Transaction auto-abort causes grief with Spring Framework
Дата
Msg-id 46C57816.5070809@magproductions.nl
обсуждение исходный текст
Ответ на Re: [RESEND] Transaction auto-abort causes grief with Spring Framework  (Tyson Lloyd Thwaites <tyson.lloydthwaites@allianza.com.au>)
Ответы Re: [RESEND] Transaction auto-abort causes grief with Spring Framework
Список pgsql-general
Tyson Lloyd Thwaites wrote:
> I am not opposed to introducing checkpoints to our API, but it would be
> nicer if I didn't have to. At the moment I have resigned myself to
> turning off spring declarative txns for certain methods, and handling
> them manually by doing multiple txn blocks. In the above example
> however, the bit that I want to allow to fail is inside a method that
> would have to be wrapped in a transaction.... .... see the web of
> complexity that is growing?

Isn't the 'try' statement rather similar to a 'savepoint' command? I
realize it would be difficult to override the behaviour of try {...}
catch (...) {...}, but it shouldn't be too hard to wrap it somehow for
exceptions in database code.

--
Alban Hertroys
alban@magproductions.nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
   7500 AK Enschede

// Integrate Your World //

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

Предыдущее
От: "Mikko Partio"
Дата:
Сообщение: Re: PostgreSQL clustering (shared disk)
Следующее
От: Jeff Amiel
Дата:
Сообщение: Postmaster does not shut down