Re: problems with transaction blocks

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: problems with transaction blocks
Дата
Msg-id 20040107171025.GA12631@wolff.to
обсуждение исходный текст
Ответ на problems with transaction blocks  ("Chris Ochs" <chris@paymentonline.com>)
Список pgsql-general
On Tue, Jan 06, 2004 at 16:52:12 -0800,
  Chris Ochs <chris@paymentonline.com> wrote:
> I want to do a series of inserts within a single transaction block, but with
> postgresql if one insert fails, the whole block is aborted.  Is there any
> way to get around this behavior so that postgresql won't abort the entire
> transaction if a single insert returns an error?

Currently there is no provision for recovery from error by the application
inside a transaction. What you can do is have the application check for
problems before trying the insert. Depending on the problems you expect,
you might be able to avoid trying an insert which will fail in almost
all cases.

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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Any way to have CREATEUSER privs without having all privs?
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: Reparse PL/pgSQL Function?