Re: Does error within transaction imply restarting it?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Does error within transaction imply restarting it?
Дата
Msg-id 200004151954.PAA05051@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Does error within transaction imply restarting it?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> Haroldo Stenger writes:
>
> > I seems that other DBMSs, don't care about erroneous statements within
> > a transaction. Now, I have several paths to follow: 1) Hacking the
> > backend ;-)
>
> If you're really brave you can try this change in
> backend/tcop/postgres.c:
>
>         if (sigsetjmp(Warn_restart, 1) != 0)
>         {
>                 time(&tim);
>
>                 if (Verbose)
>                         TPRINTF(TRACE_VERBOSE, "AbortCurrentTransaction");
>
> -               AbortCurrentTransaction();
>                 InError = false;
>                 if (ExitAfterAbort)
>                 {
>                         ProcReleaseLocks(); /* Just to be sure... */
>                         proc_exit(0);
>                 }
>         }
>
> Absolutely no guarantee, there's probably more to it. Hmm, I wonder, maybe
> not.
>
> > How can I motivate key developers to make their way into an action
> > plan?
>
> Becoming one yourself or throwing large amounts of cash at the existing
> ones. :) Trying the above and tracing down any arising problems might be a
> start though.

Seems this would be an interesting SET option.

--
  Bruce Momjian                        |  http://www.op.net/~candle
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Does error within transaction imply restarting it?
Следующее
От: Colin Smith
Дата:
Сообщение: Re: Parallel databases?