Received: from hu.tm.ee (IDENT:postfix@adsl22.uninet.ee [194.204.62.22]) by hub.org (8.9.3/8.9.3) with ESMTP id IAA96624 for ; Tue, 9 May 2000 08:50:21 -0400 (EDT) (envelope-from hannu@tm.ee) Received: from tm.ee (localhost [127.0.0.1]) by hu.tm.ee (Postfix) with ESMTP id ADE1D381D; Tue, 9 May 2000 14:54:53 +0300 (EEST) Message-ID: <3917FC8D.612D303F@tm.ee> Date: Tue, 09 May 2000 14:54:53 +0300 From: Hannu Krosing Organization: Trust-O-Matic =?iso-8859-1?Q?O=DC?= X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13-7mdk i686) X-Accept-Language: en MIME-Version: 1.0 To: Tom Lane Cc: Andrea Austa , pgsql-interfaces@postgresql.org Subject: Re: Can functions return NULL value? References: <20000508230715.D1035@giuditta.trustnoone.org> <4456.957829041@sss.pgh.pa.us> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200005/73 Tom Lane wrote: > > Andrea Austa writes: > > Can a function, written in C, return a NULL value? > > I would like write code like this: > > > text * getnull (text * t) > > { > > return NULL; > > } > > > but it doesn't work, the backend terminates abnormally. > > This will be possible in 7.1 with the new function manager interface. > Right now, it's not possible. Who is doing the new function manager interface. Is there a preliminary description somewhere ? What is the planned timetable? I ask because friend of mine is working on plpython (and has the basics working) on current code but he is quite turned off by the ugliness of current function manager (and SPI interface). ---------------- Hannu