Received: from sss.pgh.pa.us ([192.204.191.242]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6P0LPf87580 for ; Tue, 24 Jul 2001 20:21:25 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id f6P0LAC19429; Tue, 24 Jul 2001 20:21:10 -0400 (EDT) To: Laurette Cisneros cc: pgsql-admin@postgresql.org Subject: Re: error status 139 In-reply-to: References: Comments: In-reply-to Laurette Cisneros message dated "Mon, 23 Jul 2001 09:37:40 -0700" Date: Tue, 24 Jul 2001 20:21:10 -0400 Message-ID: <19426.996020470@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200107/141 X-Sequence-Number: 1900 Laurette Cisneros 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