Re: error status 139 - Mailing list pgsql-admin

From Tom Lane
Subject Re: error status 139
Date
Msg-id 19426.996020470@sss.pgh.pa.us
Whole thread Raw
In response to Re: error status 139  (Laurette Cisneros <laurette@nextbus.com>)
Responses Re: error status 139
List pgsql-admin
Laurette Cisneros <laurette@nextbus.com> writes:
> Here's the stack track from the core file:
> #1  0x4013c445 in fprintf (stream=0x0,
>     format=0x4001966f "nbpointdist\n") at fprintf.c:32

Sure looks like you're trying to write on a non-open file (stream=0
suggests you're passing a NULL file pointer to fprintf).

As for your later message, no you can't return an SQL NULL by
returning a NULL pointer.  The only way to return NULLs cleanly
is to use the v1 function call interface, within which the macro
PG_RETURN_NULL() works.  See the documentation about writing C
functions.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Henshall, Stuart - WCP"
Date:
Subject: RE: putting odbc on university server
Next
From: Ang Sei Heng
Date:
Subject: test