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

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: [RESEND] Transaction auto-abort causes grief with Spring Framework
Дата
Msg-id 46C57959.1010404@magproductions.nl
обсуждение исходный текст
Ответ на Re: [RESEND] Transaction auto-abort causes grief with Spring Framework  ("Webb Sprague" <webb.sprague@gmail.com>)
Список pgsql-general
Webb Sprague wrote:
> I am not sure how you can insert into a log even with savepoints,
> unless you put the logging statement first and then follow it with the
> insert.

and delete it after success?

Alternatively you could use one connection for your normal queries, and
another for auditing. Your application will need twice as many
connections that way, though... In that case you shouldn't commit
records on the 'normal' connection before the audit records have been
committed I suppose?

--
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 по дате отправления:

Предыдущее
От: Jeff Amiel
Дата:
Сообщение: Postmaster does not shut down
Следующее
От: rihad
Дата:
Сообщение: serial grows on failed requests