Re: C function and NULL result

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Victor Ivanov <v0rbiz(at)icon(dot)bg>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: C function and NULL result
Date: 2000-10-19 06:13:05
Message-ID: Pine.LNX.3.96.1001019075706.24158B-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 :-)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Karel Zak 2000-10-19 06:32:37 Re: to_char function
Previous Message Tom Lane 2000-10-19 06:08:19 Re: [ANNOUNCE] Open Source Database Summit