Re: Does error within transaction imply restarting it? - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Does error within transaction imply restarting it?
Date
Msg-id 200004151954.PAA05051@candle.pha.pa.us
Whole thread Raw
In response to Re: Does error within transaction imply restarting it?  (Peter Eisentraut <peter_e@gmx.net>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Does error within transaction imply restarting it?
Next
From: Colin Smith
Date:
Subject: Re: Parallel databases?