Received: from p-mail2.cnet.fr (p-mail2.rd.francetelecom.fr [193.49.124.32]) by hub.org (8.10.1/8.11.0) with SMTP id e9QEK9U54582 for ; Thu, 26 Oct 2000 10:20:10 -0400 (EDT) (envelope-from michel.decima@rd.francetelecom.fr) Received: from p-grive.issy.cnet.fr ([139.100.0.85]) by p-voyageur.issy.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VCLYC332; Thu, 26 Oct 2000 16:17:53 +0200 Received: from [139.100.4.138] (quetzal.issy.cnet.fr [139.100.4.138]) by p-grive.issy.cnet.fr with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id VC12X7QN; Thu, 26 Oct 2000 16:17:52 +0200 From: Michel Decima To: Subject: possible bug in CREATE FUNCTION Date: Thu, 26 Oct 2000 16:18:10 +0200 Message-Id: <19340920074954.12524@p-grive.issy.cnet.fr> X-Mailer: CTM PowerMail 3.0.5 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200010/118 X-Sequence-Number: 912 hello everybody, I was trying playing with the CREATE FUNCTION statement in psql when I made a copy/paste mistake : the function body was empty. The error message was strange: guanabara:~> psql Password: Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit decimami=# CREATE FUNCTION foo() RETURNS text AS ' ' LANGUAGE 'SQL' ; pqReadData() -- backend closed the channel unexpectedly. This probably means the backend terminated abnormally before or while processing the request. The connection to the server was lost. Attempting reset: Failed. !# Is this a feature ? An error message like 'function body empty' wouldn't be better ? MD.