Re: Does error within transaction imply restarting it?

From: Haroldo Stenger <hstenger(at)adinet(dot)com(dot)uy>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>, postgres general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Does error within transaction imply restarting it?
Date: 2000-04-17 04:47:46
Message-ID: 38FA9772.8608B8A6@adinet.com.uy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Peter Eisentraut wrote:
>
> 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.
>

It worked fine. I could do what I wanted, i.e. using GeneXus with
PostgreSQL. I'm happy. Thanks :)

> > 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. :)

Maybe the former?

> Trying the above and tracing down any arising problems might be a
> start though.

Good enough.

A SET option, as Bruce sugested, would be great.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message chewie 2000-04-17 07:46:54 Re: To BLOB Or Not To BLOB
Previous Message Ed Loehr 2000-04-17 03:12:25 Re: catching errors from BDI.pm