Re: C function and NULL result - Mailing list pgsql-general

From Karel Zak
Subject Re: C function and NULL result
Date
Msg-id Pine.LNX.3.96.1001019075706.24158B-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Re: C function and NULL result  (Victor Ivanov <v0rbiz@icon.bg>)
List pgsql-general
> On Tue, Oct 17, 2000 at 11:58:50AM -0400, Tom Lane wrote:
>
> Does elog(ERROR) stops the query? Now my functions return zero values for

 Yes, elog(ERROR) stops the query and inside transaction aborting it,
the elog(ERROR) jump out of your function to defined place (longjmp(3))
and backend wait for next query (if is not defined some other save stack).

The elog(FATAL) stops (abort) backend.

                    Karel

By the way (and a little OT), has anyone experience with using non-local
goto in multi-thread programs? I hope that here is not a problem :-)


pgsql-general by date:

Previous
From: YekFu.Wong@seagate.com
Date:
Subject: Re: to_char function
Next
From: Karel Zak
Date:
Subject: Re: to_char function