From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurette Cisneros <laurette@nextbus.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: error status 139
Date: Tue, 24 Jul 2001 20:21:10 -0400
Message-ID: <19426.996020470@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.33.0107230933110.13192-100000@visor.corp.nextbus.com>
References: <Pine.LNX.4.33.0107230933110.13192-100000@visor.corp.nextbus.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, laurette@nextbus.com
Subject: Re: error status 139
In-Reply-To: <19426.996020470@sss.pgh.pa.us>
References: <Pine.LNX.4.33.0107230933110.13192-100000@visor.corp.nextbus.com> <19426.996020470@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox